github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv4/defs_aix.go (about) 1 // Copyright 2019 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build ignore 6 7 // +godefs map struct_in_addr [4]byte /* in_addr */ 8 9 package ipv4 10 11 /* 12 #include <netinet/in.h> 13 */ 14 import "C" 15 16 const ( 17 sysIP_OPTIONS = C.IP_OPTIONS 18 sysIP_HDRINCL = C.IP_HDRINCL 19 sysIP_TOS = C.IP_TOS 20 sysIP_TTL = C.IP_TTL 21 sysIP_RECVOPTS = C.IP_RECVOPTS 22 sysIP_RECVRETOPTS = C.IP_RECVRETOPTS 23 sysIP_RECVDSTADDR = C.IP_RECVDSTADDR 24 sysIP_RETOPTS = C.IP_RETOPTS 25 // IP_RECVIF is defined on AIX but doesn't work. 26 // IP_RECVINTERFACE must be used instead. 27 sysIP_RECVIF = C.IP_RECVINTERFACE 28 sysIP_RECVTTL = C.IP_RECVTTL 29 30 sysIP_MULTICAST_IF = C.IP_MULTICAST_IF 31 sysIP_MULTICAST_TTL = C.IP_MULTICAST_TTL 32 sysIP_MULTICAST_LOOP = C.IP_MULTICAST_LOOP 33 sysIP_ADD_MEMBERSHIP = C.IP_ADD_MEMBERSHIP 34 sysIP_DROP_MEMBERSHIP = C.IP_DROP_MEMBERSHIP 35 36 sizeofIPMreq = C.sizeof_struct_ip_mreq 37 ) 38 39 type ipMreq C.struct_ip_mreq