Loading...
Searching...
No Matches
packet.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 INRIA
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28 unsigned short sll_family;
29 unsigned short sll_protocol;
31 unsigned short sll_hatype;
32 unsigned char sll_pkttype;
33 unsigned char sll_halen;
34 unsigned char sll_addr[8];
35};
36
37#ifdef __cplusplus
38}
39#endif
40
Link-Layer socket descriptor.
Definition packet.h:27
unsigned char sll_addr[8]
Physical-layer address.
Definition packet.h:34
unsigned short sll_family
Always AF_PACKET.
Definition packet.h:28
unsigned char sll_pkttype
Packet type.
Definition packet.h:32
unsigned char sll_halen
Length of address.
Definition packet.h:33
unsigned short sll_hatype
ARP hardware type.
Definition packet.h:31
int sll_ifindex
Interface number.
Definition packet.h:30
unsigned short sll_protocol
Physical-layer protocol.
Definition packet.h:29