github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv4/defs_netbsd.go (about) 1 // Copyright 2014 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 sysIP_RECVIF = C.IP_RECVIF 26 sysIP_RECVTTL = C.IP_RECVTTL 27 28 sysIP_MULTICAST_IF = C.IP_MULTICAST_IF 29 sysIP_MULTICAST_TTL = C.IP_MULTICAST_TTL 30 sysIP_MULTICAST_LOOP = C.IP_MULTICAST_LOOP 31 sysIP_ADD_MEMBERSHIP = C.IP_ADD_MEMBERSHIP 32 sysIP_DROP_MEMBERSHIP = C.IP_DROP_MEMBERSHIP 33 34 sizeofIPMreq = C.sizeof_struct_ip_mreq 35 ) 36 37 type ipMreq C.struct_ip_mreq