gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/ipv4/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  // +build riscv64
     6  
     7  package ipv4
     8  
     9  const (
    10  	sizeofKernelSockaddrStorage = 0x80
    11  	sizeofSockaddrInet          = 0x10
    12  	sizeofInetPktinfo           = 0xc
    13  	sizeofSockExtendedErr       = 0x10
    14  
    15  	sizeofIPMreq         = 0x8
    16  	sizeofIPMreqSource   = 0xc
    17  	sizeofGroupReq       = 0x88
    18  	sizeofGroupSourceReq = 0x108
    19  
    20  	sizeofICMPFilter = 0x4
    21  )
    22  
    23  type kernelSockaddrStorage struct {
    24  	Family  uint16
    25  	X__data [126]int8
    26  }
    27  
    28  type sockaddrInet struct {
    29  	Family uint16
    30  	Port   uint16
    31  	Addr   [4]byte /* in_addr */
    32  	X__pad [8]uint8
    33  }
    34  
    35  type inetPktinfo struct {
    36  	Ifindex  int32
    37  	Spec_dst [4]byte /* in_addr */
    38  	Addr     [4]byte /* in_addr */
    39  }
    40  
    41  type sockExtendedErr struct {
    42  	Errno  uint32
    43  	Origin uint8
    44  	Type   uint8
    45  	Code   uint8
    46  	Pad    uint8
    47  	Info   uint32
    48  	Data   uint32
    49  }
    50  
    51  type ipMreq struct {
    52  	Multiaddr [4]byte /* in_addr */
    53  	Interface [4]byte /* in_addr */
    54  }
    55  
    56  type ipMreqSource struct {
    57  	Multiaddr  uint32
    58  	Interface  uint32
    59  	Sourceaddr uint32
    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 icmpFilter struct {
    76  	Data uint32
    77  }