github.com/Andyfoo/golang/x/net@v0.0.0-20190901054642-57c1bf301704/ipv4/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 ipv4
     7  
     8  const (
     9  	sysIP_TOS             = 0x1
    10  	sysIP_TTL             = 0x2
    11  	sysIP_HDRINCL         = 0x3
    12  	sysIP_OPTIONS         = 0x4
    13  	sysIP_ROUTER_ALERT    = 0x5
    14  	sysIP_RECVOPTS        = 0x6
    15  	sysIP_RETOPTS         = 0x7
    16  	sysIP_PKTINFO         = 0x8
    17  	sysIP_PKTOPTIONS      = 0x9
    18  	sysIP_MTU_DISCOVER    = 0xa
    19  	sysIP_RECVERR         = 0xb
    20  	sysIP_RECVTTL         = 0xc
    21  	sysIP_RECVTOS         = 0xd
    22  	sysIP_MTU             = 0xe
    23  	sysIP_FREEBIND        = 0xf
    24  	sysIP_TRANSPARENT     = 0x13
    25  	sysIP_RECVRETOPTS     = 0x7
    26  	sysIP_ORIGDSTADDR     = 0x14
    27  	sysIP_RECVORIGDSTADDR = 0x14
    28  	sysIP_MINTTL          = 0x15
    29  	sysIP_NODEFRAG        = 0x16
    30  	sysIP_UNICAST_IF      = 0x32
    31  
    32  	sysIP_MULTICAST_IF           = 0x20
    33  	sysIP_MULTICAST_TTL          = 0x21
    34  	sysIP_MULTICAST_LOOP         = 0x22
    35  	sysIP_ADD_MEMBERSHIP         = 0x23
    36  	sysIP_DROP_MEMBERSHIP        = 0x24
    37  	sysIP_UNBLOCK_SOURCE         = 0x25
    38  	sysIP_BLOCK_SOURCE           = 0x26
    39  	sysIP_ADD_SOURCE_MEMBERSHIP  = 0x27
    40  	sysIP_DROP_SOURCE_MEMBERSHIP = 0x28
    41  	sysIP_MSFILTER               = 0x29
    42  	sysMCAST_JOIN_GROUP          = 0x2a
    43  	sysMCAST_LEAVE_GROUP         = 0x2d
    44  	sysMCAST_JOIN_SOURCE_GROUP   = 0x2e
    45  	sysMCAST_LEAVE_SOURCE_GROUP  = 0x2f
    46  	sysMCAST_BLOCK_SOURCE        = 0x2b
    47  	sysMCAST_UNBLOCK_SOURCE      = 0x2c
    48  	sysMCAST_MSFILTER            = 0x30
    49  	sysIP_MULTICAST_ALL          = 0x31
    50  
    51  	sysICMP_FILTER = 0x1
    52  
    53  	sysSO_EE_ORIGIN_NONE         = 0x0
    54  	sysSO_EE_ORIGIN_LOCAL        = 0x1
    55  	sysSO_EE_ORIGIN_ICMP         = 0x2
    56  	sysSO_EE_ORIGIN_ICMP6        = 0x3
    57  	sysSO_EE_ORIGIN_TXSTATUS     = 0x4
    58  	sysSO_EE_ORIGIN_TIMESTAMPING = 0x4
    59  
    60  	sysSOL_SOCKET       = 0x1
    61  	sysSO_ATTACH_FILTER = 0x1a
    62  
    63  	sizeofKernelSockaddrStorage = 0x80
    64  	sizeofSockaddrInet          = 0x10
    65  	sizeofInetPktinfo           = 0xc
    66  	sizeofSockExtendedErr       = 0x10
    67  
    68  	sizeofIPMreq         = 0x8
    69  	sizeofIPMreqn        = 0xc
    70  	sizeofIPMreqSource   = 0xc
    71  	sizeofGroupReq       = 0x88
    72  	sizeofGroupSourceReq = 0x108
    73  
    74  	sizeofICMPFilter = 0x4
    75  
    76  	sizeofSockFprog = 0x10
    77  )
    78  
    79  type kernelSockaddrStorage struct {
    80  	Family  uint16
    81  	X__data [126]int8
    82  }
    83  
    84  type sockaddrInet struct {
    85  	Family uint16
    86  	Port   uint16
    87  	Addr   [4]byte /* in_addr */
    88  	X__pad [8]uint8
    89  }
    90  
    91  type inetPktinfo struct {
    92  	Ifindex  int32
    93  	Spec_dst [4]byte /* in_addr */
    94  	Addr     [4]byte /* in_addr */
    95  }
    96  
    97  type sockExtendedErr struct {
    98  	Errno  uint32
    99  	Origin uint8
   100  	Type   uint8
   101  	Code   uint8
   102  	Pad    uint8
   103  	Info   uint32
   104  	Data   uint32
   105  }
   106  
   107  type ipMreq struct {
   108  	Multiaddr [4]byte /* in_addr */
   109  	Interface [4]byte /* in_addr */
   110  }
   111  
   112  type ipMreqn struct {
   113  	Multiaddr [4]byte /* in_addr */
   114  	Address   [4]byte /* in_addr */
   115  	Ifindex   int32
   116  }
   117  
   118  type ipMreqSource struct {
   119  	Multiaddr  uint32
   120  	Interface  uint32
   121  	Sourceaddr uint32
   122  }
   123  
   124  type groupReq struct {
   125  	Interface uint32
   126  	Pad_cgo_0 [4]byte
   127  	Group     kernelSockaddrStorage
   128  }
   129  
   130  type groupSourceReq struct {
   131  	Interface uint32
   132  	Pad_cgo_0 [4]byte
   133  	Group     kernelSockaddrStorage
   134  	Source    kernelSockaddrStorage
   135  }
   136  
   137  type icmpFilter struct {
   138  	Data uint32
   139  }
   140  
   141  type sockFProg struct {
   142  	Len    uint16
   143  	Filter *sockFilter
   144  }
   145  
   146  type sockFilter struct {
   147  	Code uint16
   148  	Jt   uint8
   149  	Jf   uint8
   150  	K    uint32
   151  }