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

     1  // Code generated by cmd/cgo -godefs; DO NOT EDIT.
     2  // cgo -godefs defs_freebsd.go
     3  
     4  package ipv6
     5  
     6  const (
     7  	sizeofSockaddrStorage = 0x80
     8  	sizeofSockaddrInet6   = 0x1c
     9  	sizeofInet6Pktinfo    = 0x14
    10  	sizeofIPv6Mtuinfo     = 0x20
    11  
    12  	sizeofIPv6Mreq       = 0x14
    13  	sizeofGroupReq       = 0x84
    14  	sizeofGroupSourceReq = 0x104
    15  
    16  	sizeofICMPv6Filter = 0x20
    17  )
    18  
    19  type sockaddrStorage struct {
    20  	Len         uint8
    21  	Family      uint8
    22  	X__ss_pad1  [6]int8
    23  	X__ss_align int64
    24  	X__ss_pad2  [112]int8
    25  }
    26  
    27  type sockaddrInet6 struct {
    28  	Len      uint8
    29  	Family   uint8
    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 uint32
    39  }
    40  
    41  type ipv6Mtuinfo struct {
    42  	Addr sockaddrInet6
    43  	Mtu  uint32
    44  }
    45  
    46  type ipv6Mreq struct {
    47  	Multiaddr [16]byte /* in6_addr */
    48  	Interface uint32
    49  }
    50  
    51  type groupReq struct {
    52  	Interface uint32
    53  	Group     sockaddrStorage
    54  }
    55  
    56  type groupSourceReq struct {
    57  	Interface uint32
    58  	Group     sockaddrStorage
    59  	Source    sockaddrStorage
    60  }
    61  
    62  type icmpv6Filter struct {
    63  	Filt [8]uint32
    64  }