ddn.lib.pcap.link.sll

Linux cooked sockets (SLL) pseudo-headers.

Authors

Dejan Lekić

License

BSD-3-Clause

Types 2

structsll_header
Fields
u_short sll_pkttype
u_short sll_hatype
u_short sll_halen
u_char[SLL_ADDRLEN] sll_addr
u_short sll_protocol
structsll2_header
Fields
u_short sll2_protocol
u_short sll2_reserved_mbz
uint sll2_if_index
u_short sll2_hatype
u_char sll2_pkttype
u_char sll2_halen
u_char[SLL_ADDRLEN] sll2_addr

Functions 1

fnbool validateSll2Header(const ref sll2_header hdr) pure nothrow @nogcValidates an SLL2 header, checking that reserved fields are zero.

Variables 3

enumvarSLL_HDR_LEN = 16
enumvarSLL_ADDRLEN = 8
enumvarSLL2_HDR_LEN = 20