github.com/lianghucheng/zrddz@v0.0.0-20200923083010-c71f680932e2/src/golang.org/x/net/ipv6/zsys_linux_mips64.go (about)

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs defs_linux.go
     3  
     4  package ipv6
     5  
     6  const (
     7  	sysIPV6_ADDRFORM       = 0x1
     8  	sysIPV6_2292PKTINFO    = 0x2
     9  	sysIPV6_2292HOPOPTS    = 0x3
    10  	sysIPV6_2292DSTOPTS    = 0x4
    11  	sysIPV6_2292RTHDR      = 0x5
    12  	sysIPV6_2292PKTOPTIONS = 0x6
    13  	sysIPV6_CHECKSUM       = 0x7
    14  	sysIPV6_2292HOPLIMIT   = 0x8
    15  	sysIPV6_NEXTHOP        = 0x9
    16  	sysIPV6_FLOWINFO       = 0xb
    17  
    18  	sysIPV6_UNICAST_HOPS        = 0x10
    19  	sysIPV6_MULTICAST_IF        = 0x11
    20  	sysIPV6_MULTICAST_HOPS      = 0x12
    21  	sysIPV6_MULTICAST_LOOP      = 0x13
    22  	sysIPV6_ADD_MEMBERSHIP      = 0x14
    23  	sysIPV6_DROP_MEMBERSHIP     = 0x15
    24  	sysMCAST_JOIN_GROUP         = 0x2a
    25  	sysMCAST_LEAVE_GROUP        = 0x2d
    26  	sysMCAST_JOIN_SOURCE_GROUP  = 0x2e
    27  	sysMCAST_LEAVE_SOURCE_GROUP = 0x2f
    28  	sysMCAST_BLOCK_SOURCE       = 0x2b
    29  	sysMCAST_UNBLOCK_SOURCE     = 0x2c
    30  	sysMCAST_MSFILTER           = 0x30
    31  	sysIPV6_ROUTER_ALERT        = 0x16
    32  	sysIPV6_MTU_DISCOVER        = 0x17
    33  	sysIPV6_MTU                 = 0x18
    34  	sysIPV6_RECVERR             = 0x19
    35  	sysIPV6_V6ONLY              = 0x1a
    36  	sysIPV6_JOIN_ANYCAST        = 0x1b
    37  	sysIPV6_LEAVE_ANYCAST       = 0x1c
    38  
    39  	sysIPV6_FLOWLABEL_MGR = 0x20
    40  	sysIPV6_FLOWINFO_SEND = 0x21
    41  
    42  	sysIPV6_IPSEC_POLICY = 0x22
    43  	sysIPV6_XFRM_POLICY  = 0x23
    44  
    45  	sysIPV6_RECVPKTINFO  = 0x31
    46  	sysIPV6_PKTINFO      = 0x32
    47  	sysIPV6_RECVHOPLIMIT = 0x33
    48  	sysIPV6_HOPLIMIT     = 0x34
    49  	sysIPV6_RECVHOPOPTS  = 0x35
    50  	sysIPV6_HOPOPTS      = 0x36
    51  	sysIPV6_RTHDRDSTOPTS = 0x37
    52  	sysIPV6_RECVRTHDR    = 0x38
    53  	sysIPV6_RTHDR        = 0x39
    54  	sysIPV6_RECVDSTOPTS  = 0x3a
    55  	sysIPV6_DSTOPTS      = 0x3b
    56  	sysIPV6_RECVPATHMTU  = 0x3c
    57  	sysIPV6_PATHMTU      = 0x3d
    58  	sysIPV6_DONTFRAG     = 0x3e
    59  
    60  	sysIPV6_RECVTCLASS = 0x42
    61  	sysIPV6_TCLASS     = 0x43
    62  
    63  	sysIPV6_ADDR_PREFERENCES = 0x48
    64  
    65  	sysIPV6_PREFER_SRC_TMP            = 0x1
    66  	sysIPV6_PREFER_SRC_PUBLIC         = 0x2
    67  	sysIPV6_PREFER_SRC_PUBTMP_DEFAULT = 0x100
    68  	sysIPV6_PREFER_SRC_COA            = 0x4
    69  	sysIPV6_PREFER_SRC_HOME           = 0x400
    70  	sysIPV6_PREFER_SRC_CGA            = 0x8
    71  	sysIPV6_PREFER_SRC_NONCGA         = 0x800
    72  
    73  	sysIPV6_MINHOPCOUNT = 0x49
    74  
    75  	sysIPV6_ORIGDSTADDR     = 0x4a
    76  	sysIPV6_RECVORIGDSTADDR = 0x4a
    77  	sysIPV6_TRANSPARENT     = 0x4b
    78  	sysIPV6_UNICAST_IF      = 0x4c
    79  
    80  	sysICMPV6_FILTER = 0x1
    81  
    82  	sysICMPV6_FILTER_BLOCK       = 0x1
    83  	sysICMPV6_FILTER_PASS        = 0x2
    84  	sysICMPV6_FILTER_BLOCKOTHERS = 0x3
    85  	sysICMPV6_FILTER_PASSONLY    = 0x4
    86  
    87  	sysSOL_SOCKET       = 0x1
    88  	sysSO_ATTACH_FILTER = 0x1a
    89  
    90  	sizeofKernelSockaddrStorage = 0x80
    91  	sizeofSockaddrInet6         = 0x1c
    92  	sizeofInet6Pktinfo          = 0x14
    93  	sizeofIPv6Mtuinfo           = 0x20
    94  	sizeofIPv6FlowlabelReq      = 0x20
    95  
    96  	sizeofIPv6Mreq       = 0x14
    97  	sizeofGroupReq       = 0x88
    98  	sizeofGroupSourceReq = 0x108
    99  
   100  	sizeofICMPv6Filter = 0x20
   101  
   102  	sizeofSockFprog = 0x10
   103  )
   104  
   105  type kernelSockaddrStorage struct {
   106  	Family  uint16
   107  	X__data [126]int8
   108  }
   109  
   110  type sockaddrInet6 struct {
   111  	Family   uint16
   112  	Port     uint16
   113  	Flowinfo uint32
   114  	Addr     [16]byte /* in6_addr */
   115  	Scope_id uint32
   116  }
   117  
   118  type inet6Pktinfo struct {
   119  	Addr    [16]byte /* in6_addr */
   120  	Ifindex int32
   121  }
   122  
   123  type ipv6Mtuinfo struct {
   124  	Addr sockaddrInet6
   125  	Mtu  uint32
   126  }
   127  
   128  type ipv6FlowlabelReq struct {
   129  	Dst        [16]byte /* in6_addr */
   130  	Label      uint32
   131  	Action     uint8
   132  	Share      uint8
   133  	Flags      uint16
   134  	Expires    uint16
   135  	Linger     uint16
   136  	X__flr_pad uint32
   137  }
   138  
   139  type ipv6Mreq struct {
   140  	Multiaddr [16]byte /* in6_addr */
   141  	Ifindex   int32
   142  }
   143  
   144  type groupReq struct {
   145  	Interface uint32
   146  	Pad_cgo_0 [4]byte
   147  	Group     kernelSockaddrStorage
   148  }
   149  
   150  type groupSourceReq struct {
   151  	Interface uint32
   152  	Pad_cgo_0 [4]byte
   153  	Group     kernelSockaddrStorage
   154  	Source    kernelSockaddrStorage
   155  }
   156  
   157  type icmpv6Filter struct {
   158  	Data [8]uint32
   159  }
   160  
   161  type sockFProg struct {
   162  	Len       uint16
   163  	Pad_cgo_0 [6]byte
   164  	Filter    *sockFilter
   165  }
   166  
   167  type sockFilter struct {
   168  	Code uint16
   169  	Jt   uint8
   170  	Jf   uint8
   171  	K    uint32
   172  }