github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/proto_vendor/golang.org/x/net/ipv6/zsys_linux_riscv64.go (about)

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