github.com/hxx258456/ccgo@v0.0.5-0.20230213014102-48b35f46f66f/net/ipv6/zsys_netbsd.go (about)

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_netbsd.go
     3  
     4  package ipv6
     5  
     6  const (
     7  	sizeofSockaddrInet6 = 0x1c
     8  	sizeofInet6Pktinfo  = 0x14
     9  	sizeofIPv6Mtuinfo   = 0x20
    10  
    11  	sizeofIPv6Mreq = 0x14
    12  
    13  	sizeofICMPv6Filter = 0x20
    14  )
    15  
    16  type sockaddrInet6 struct {
    17  	Len      uint8
    18  	Family   uint8
    19  	Port     uint16
    20  	Flowinfo uint32
    21  	Addr     [16]byte /* in6_addr */
    22  	Scope_id uint32
    23  }
    24  
    25  type inet6Pktinfo struct {
    26  	Addr    [16]byte /* in6_addr */
    27  	Ifindex uint32
    28  }
    29  
    30  type ipv6Mtuinfo struct {
    31  	Addr sockaddrInet6
    32  	Mtu  uint32
    33  }
    34  
    35  type ipv6Mreq struct {
    36  	Multiaddr [16]byte /* in6_addr */
    37  	Interface uint32
    38  }
    39  
    40  type icmpv6Filter struct {
    41  	Filt [8]uint32
    42  }