github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv4/zsys_freebsd_386.go (about) 1 // Code generated by cmd/cgo -godefs; DO NOT EDIT. 2 // cgo -godefs defs_freebsd.go 3 4 package ipv4 5 6 const ( 7 sysIP_OPTIONS = 0x1 8 sysIP_HDRINCL = 0x2 9 sysIP_TOS = 0x3 10 sysIP_TTL = 0x4 11 sysIP_RECVOPTS = 0x5 12 sysIP_RECVRETOPTS = 0x6 13 sysIP_RECVDSTADDR = 0x7 14 sysIP_SENDSRCADDR = 0x7 15 sysIP_RETOPTS = 0x8 16 sysIP_RECVIF = 0x14 17 sysIP_ONESBCAST = 0x17 18 sysIP_BINDANY = 0x18 19 sysIP_RECVTTL = 0x41 20 sysIP_MINTTL = 0x42 21 sysIP_DONTFRAG = 0x43 22 sysIP_RECVTOS = 0x44 23 24 sysIP_MULTICAST_IF = 0x9 25 sysIP_MULTICAST_TTL = 0xa 26 sysIP_MULTICAST_LOOP = 0xb 27 sysIP_ADD_MEMBERSHIP = 0xc 28 sysIP_DROP_MEMBERSHIP = 0xd 29 sysIP_MULTICAST_VIF = 0xe 30 sysIP_ADD_SOURCE_MEMBERSHIP = 0x46 31 sysIP_DROP_SOURCE_MEMBERSHIP = 0x47 32 sysIP_BLOCK_SOURCE = 0x48 33 sysIP_UNBLOCK_SOURCE = 0x49 34 sysMCAST_JOIN_GROUP = 0x50 35 sysMCAST_LEAVE_GROUP = 0x51 36 sysMCAST_JOIN_SOURCE_GROUP = 0x52 37 sysMCAST_LEAVE_SOURCE_GROUP = 0x53 38 sysMCAST_BLOCK_SOURCE = 0x54 39 sysMCAST_UNBLOCK_SOURCE = 0x55 40 41 sizeofSockaddrStorage = 0x80 42 sizeofSockaddrInet = 0x10 43 44 sizeofIPMreq = 0x8 45 sizeofIPMreqn = 0xc 46 sizeofIPMreqSource = 0xc 47 sizeofGroupReq = 0x84 48 sizeofGroupSourceReq = 0x104 49 ) 50 51 type sockaddrStorage struct { 52 Len uint8 53 Family uint8 54 X__ss_pad1 [6]int8 55 X__ss_align int64 56 X__ss_pad2 [112]int8 57 } 58 59 type sockaddrInet struct { 60 Len uint8 61 Family uint8 62 Port uint16 63 Addr [4]byte /* in_addr */ 64 Zero [8]int8 65 } 66 67 type ipMreq struct { 68 Multiaddr [4]byte /* in_addr */ 69 Interface [4]byte /* in_addr */ 70 } 71 72 type ipMreqn struct { 73 Multiaddr [4]byte /* in_addr */ 74 Address [4]byte /* in_addr */ 75 Ifindex int32 76 } 77 78 type ipMreqSource struct { 79 Multiaddr [4]byte /* in_addr */ 80 Sourceaddr [4]byte /* in_addr */ 81 Interface [4]byte /* in_addr */ 82 } 83 84 type groupReq struct { 85 Interface uint32 86 Group sockaddrStorage 87 } 88 89 type groupSourceReq struct { 90 Interface uint32 91 Group sockaddrStorage 92 Source sockaddrStorage 93 }