1// Code generated by cmd/cgo -godefs; DO NOT EDIT. 2// cgo -godefs defs_linux.go 3 4package ipv4 5 6const ( 7 sizeofKernelSockaddrStorage = 0x80 8 sizeofSockaddrInet = 0x10 9 sizeofInetPktinfo = 0xc 10 sizeofSockExtendedErr = 0x10 11 12 sizeofIPMreq = 0x8 13 sizeofIPMreqSource = 0xc 14 sizeofGroupReq = 0x84 15 sizeofGroupSourceReq = 0x104 16 17 sizeofICMPFilter = 0x4 18) 19 20type kernelSockaddrStorage struct { 21 Family uint16 22 X__data [126]int8 23} 24 25type sockaddrInet struct { 26 Family uint16 27 Port uint16 28 Addr [4]byte /* in_addr */ 29 X__pad [8]uint8 30} 31 32type inetPktinfo struct { 33 Ifindex int32 34 Spec_dst [4]byte /* in_addr */ 35 Addr [4]byte /* in_addr */ 36} 37 38type sockExtendedErr struct { 39 Errno uint32 40 Origin uint8 41 Type uint8 42 Code uint8 43 Pad uint8 44 Info uint32 45 Data uint32 46} 47 48type ipMreq struct { 49 Multiaddr [4]byte /* in_addr */ 50 Interface [4]byte /* in_addr */ 51} 52 53type ipMreqSource struct { 54 Multiaddr uint32 55 Interface uint32 56 Sourceaddr uint32 57} 58 59type groupReq struct { 60 Interface uint32 61 Group kernelSockaddrStorage 62} 63 64type groupSourceReq struct { 65 Interface uint32 66 Group kernelSockaddrStorage 67 Source kernelSockaddrStorage 68} 69 70type icmpFilter struct { 71 Data uint32 72} 73