golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/ipv6/zsys_linux_riscv64.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_linux.go
     3  
     4  //go:build riscv64
     5  
     6  package ipv6
     7  
     8  const (
     9  	sizeofKernelSockaddrStorage = 0x80
    10  	sizeofSockaddrInet6         = 0x1c
    11  	sizeofInet6Pktinfo          = 0x14
    12  	sizeofIPv6Mtuinfo           = 0x20
    13  	sizeofIPv6FlowlabelReq      = 0x20
    14  
    15  	sizeofIPv6Mreq       = 0x14
    16  	sizeofGroupReq       = 0x88
    17  	sizeofGroupSourceReq = 0x108
    18  
    19  	sizeofICMPv6Filter = 0x20
    20  )
    21  
    22  type kernelSockaddrStorage struct {
    23  	Family  uint16
    24  	X__data [126]int8
    25  }
    26  
    27  type sockaddrInet6 struct {
    28  	Family   uint16
    29  	Port     uint16
    30  	Flowinfo uint32
    31  	Addr     [16]byte /* in6_addr */
    32  	Scope_id uint32
    33  }
    34  
    35  type inet6Pktinfo struct {
    36  	Addr    [16]byte /* in6_addr */
    37  	Ifindex int32
    38  }
    39  
    40  type ipv6Mtuinfo struct {
    41  	Addr sockaddrInet6
    42  	Mtu  uint32
    43  }
    44  
    45  type ipv6FlowlabelReq struct {
    46  	Dst        [16]byte /* in6_addr */
    47  	Label      uint32
    48  	Action     uint8
    49  	Share      uint8
    50  	Flags      uint16
    51  	Expires    uint16
    52  	Linger     uint16
    53  	X__flr_pad uint32
    54  }
    55  
    56  type ipv6Mreq struct {
    57  	Multiaddr [16]byte /* in6_addr */
    58  	Ifindex   int32
    59  }
    60  
    61  type groupReq struct {
    62  	Interface uint32
    63  	Pad_cgo_0 [4]byte
    64  	Group     kernelSockaddrStorage
    65  }
    66  
    67  type groupSourceReq struct {
    68  	Interface uint32
    69  	Pad_cgo_0 [4]byte
    70  	Group     kernelSockaddrStorage
    71  	Source    kernelSockaddrStorage
    72  }
    73  
    74  type icmpv6Filter struct {
    75  	Data [8]uint32
    76  }