github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv4/defs_solaris.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 <sys/socket.h> 13 14 #include <netinet/in.h> 15 */ 16 import "C" 17 18 const ( 19 sysIP_OPTIONS = C.IP_OPTIONS 20 sysIP_HDRINCL = C.IP_HDRINCL 21 sysIP_TOS = C.IP_TOS 22 sysIP_TTL = C.IP_TTL 23 sysIP_RECVOPTS = C.IP_RECVOPTS 24 sysIP_RECVRETOPTS = C.IP_RECVRETOPTS 25 sysIP_RECVDSTADDR = C.IP_RECVDSTADDR 26 sysIP_RETOPTS = C.IP_RETOPTS 27 sysIP_RECVIF = C.IP_RECVIF 28 sysIP_RECVSLLA = C.IP_RECVSLLA 29 sysIP_RECVTTL = C.IP_RECVTTL 30 31 sysIP_MULTICAST_IF = C.IP_MULTICAST_IF 32 sysIP_MULTICAST_TTL = C.IP_MULTICAST_TTL 33 sysIP_MULTICAST_LOOP = C.IP_MULTICAST_LOOP 34 sysIP_ADD_MEMBERSHIP = C.IP_ADD_MEMBERSHIP 35 sysIP_DROP_MEMBERSHIP = C.IP_DROP_MEMBERSHIP 36 sysIP_BLOCK_SOURCE = C.IP_BLOCK_SOURCE 37 sysIP_UNBLOCK_SOURCE = C.IP_UNBLOCK_SOURCE 38 sysIP_ADD_SOURCE_MEMBERSHIP = C.IP_ADD_SOURCE_MEMBERSHIP 39 sysIP_DROP_SOURCE_MEMBERSHIP = C.IP_DROP_SOURCE_MEMBERSHIP 40 sysIP_NEXTHOP = C.IP_NEXTHOP 41 42 sysIP_PKTINFO = C.IP_PKTINFO 43 sysIP_RECVPKTINFO = C.IP_RECVPKTINFO 44 sysIP_DONTFRAG = C.IP_DONTFRAG 45 46 sysIP_BOUND_IF = C.IP_BOUND_IF 47 sysIP_UNSPEC_SRC = C.IP_UNSPEC_SRC 48 sysIP_BROADCAST_TTL = C.IP_BROADCAST_TTL 49 sysIP_DHCPINIT_IF = C.IP_DHCPINIT_IF 50 51 sysIP_REUSEADDR = C.IP_REUSEADDR 52 sysIP_DONTROUTE = C.IP_DONTROUTE 53 sysIP_BROADCAST = C.IP_BROADCAST 54 55 sysMCAST_JOIN_GROUP = C.MCAST_JOIN_GROUP 56 sysMCAST_LEAVE_GROUP = C.MCAST_LEAVE_GROUP 57 sysMCAST_BLOCK_SOURCE = C.MCAST_BLOCK_SOURCE 58 sysMCAST_UNBLOCK_SOURCE = C.MCAST_UNBLOCK_SOURCE 59 sysMCAST_JOIN_SOURCE_GROUP = C.MCAST_JOIN_SOURCE_GROUP 60 sysMCAST_LEAVE_SOURCE_GROUP = C.MCAST_LEAVE_SOURCE_GROUP 61 62 sizeofSockaddrStorage = C.sizeof_struct_sockaddr_storage 63 sizeofSockaddrInet = C.sizeof_struct_sockaddr_in 64 sizeofInetPktinfo = C.sizeof_struct_in_pktinfo 65 66 sizeofIPMreq = C.sizeof_struct_ip_mreq 67 sizeofIPMreqSource = C.sizeof_struct_ip_mreq_source 68 sizeofGroupReq = C.sizeof_struct_group_req 69 sizeofGroupSourceReq = C.sizeof_struct_group_source_req 70 ) 71 72 type sockaddrStorage C.struct_sockaddr_storage 73 74 type sockaddrInet C.struct_sockaddr_in 75 76 type inetPktinfo C.struct_in_pktinfo 77 78 type ipMreq C.struct_ip_mreq 79 80 type ipMreqSource C.struct_ip_mreq_source 81 82 type groupReq C.struct_group_req 83 84 type groupSourceReq C.struct_group_source_req