github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/net/ipv6/zsys_freebsd_amd64.go (about) 1 // Created by cgo -godefs - DO NOT EDIT 2 // cgo -godefs defs_freebsd.go 3 4 package ipv6 5 6 const ( 7 sysIPV6_UNICAST_HOPS = 0x4 8 sysIPV6_MULTICAST_IF = 0x9 9 sysIPV6_MULTICAST_HOPS = 0xa 10 sysIPV6_MULTICAST_LOOP = 0xb 11 sysIPV6_JOIN_GROUP = 0xc 12 sysIPV6_LEAVE_GROUP = 0xd 13 sysIPV6_PORTRANGE = 0xe 14 sysICMP6_FILTER = 0x12 15 16 sysIPV6_CHECKSUM = 0x1a 17 sysIPV6_V6ONLY = 0x1b 18 19 sysIPV6_IPSEC_POLICY = 0x1c 20 21 sysIPV6_RTHDRDSTOPTS = 0x23 22 23 sysIPV6_RECVPKTINFO = 0x24 24 sysIPV6_RECVHOPLIMIT = 0x25 25 sysIPV6_RECVRTHDR = 0x26 26 sysIPV6_RECVHOPOPTS = 0x27 27 sysIPV6_RECVDSTOPTS = 0x28 28 29 sysIPV6_USE_MIN_MTU = 0x2a 30 sysIPV6_RECVPATHMTU = 0x2b 31 32 sysIPV6_PATHMTU = 0x2c 33 34 sysIPV6_PKTINFO = 0x2e 35 sysIPV6_HOPLIMIT = 0x2f 36 sysIPV6_NEXTHOP = 0x30 37 sysIPV6_HOPOPTS = 0x31 38 sysIPV6_DSTOPTS = 0x32 39 sysIPV6_RTHDR = 0x33 40 41 sysIPV6_RECVTCLASS = 0x39 42 43 sysIPV6_AUTOFLOWLABEL = 0x3b 44 45 sysIPV6_TCLASS = 0x3d 46 sysIPV6_DONTFRAG = 0x3e 47 48 sysIPV6_PREFER_TEMPADDR = 0x3f 49 50 sysIPV6_BINDANY = 0x40 51 52 sysIPV6_MSFILTER = 0x4a 53 54 sysMCAST_JOIN_GROUP = 0x50 55 sysMCAST_LEAVE_GROUP = 0x51 56 sysMCAST_JOIN_SOURCE_GROUP = 0x52 57 sysMCAST_LEAVE_SOURCE_GROUP = 0x53 58 sysMCAST_BLOCK_SOURCE = 0x54 59 sysMCAST_UNBLOCK_SOURCE = 0x55 60 61 sysIPV6_PORTRANGE_DEFAULT = 0x0 62 sysIPV6_PORTRANGE_HIGH = 0x1 63 sysIPV6_PORTRANGE_LOW = 0x2 64 65 sizeofSockaddrStorage = 0x80 66 sizeofSockaddrInet6 = 0x1c 67 sizeofInet6Pktinfo = 0x14 68 sizeofIPv6Mtuinfo = 0x20 69 70 sizeofIPv6Mreq = 0x14 71 sizeofGroupReq = 0x88 72 sizeofGroupSourceReq = 0x108 73 74 sizeofICMPv6Filter = 0x20 75 ) 76 77 type sockaddrStorage struct { 78 Len uint8 79 Family uint8 80 X__ss_pad1 [6]int8 81 X__ss_align int64 82 X__ss_pad2 [112]int8 83 } 84 85 type sockaddrInet6 struct { 86 Len uint8 87 Family uint8 88 Port uint16 89 Flowinfo uint32 90 Addr [16]byte /* in6_addr */ 91 Scope_id uint32 92 } 93 94 type inet6Pktinfo struct { 95 Addr [16]byte /* in6_addr */ 96 Ifindex uint32 97 } 98 99 type ipv6Mtuinfo struct { 100 Addr sockaddrInet6 101 Mtu uint32 102 } 103 104 type ipv6Mreq struct { 105 Multiaddr [16]byte /* in6_addr */ 106 Interface uint32 107 } 108 109 type groupReq struct { 110 Interface uint32 111 Pad_cgo_0 [4]byte 112 Group sockaddrStorage 113 } 114 115 type groupSourceReq struct { 116 Interface uint32 117 Pad_cgo_0 [4]byte 118 Group sockaddrStorage 119 Source sockaddrStorage 120 } 121 122 type icmpv6Filter struct { 123 Filt [8]uint32 124 }