gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/ipv6/zsys_linux_loong64.go (about)

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