Loading...
Searching...
No Matches
packet.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 INRIA
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
21#ifndef NET_PACKET_H
22#define NET_PACKET_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
32 unsigned short sll_family;
33 unsigned short sll_protocol;
35 unsigned short sll_hatype;
36 unsigned char sll_pkttype;
37 unsigned char sll_halen;
38 unsigned char sll_addr[8];
39};
40
41#ifdef __cplusplus
42}
43#endif
44
48#endif /* NET_PACKET_H */
Link-Layer socket descriptor.
Definition packet.h:31
unsigned char sll_addr[8]
Physical-layer address.
Definition packet.h:38
unsigned short sll_family
Always AF_PACKET.
Definition packet.h:32
unsigned char sll_pkttype
Packet type.
Definition packet.h:36
unsigned char sll_halen
Length of address.
Definition packet.h:37
unsigned short sll_hatype
ARP hardware type.
Definition packet.h:35
int sll_ifindex
Interface number.
Definition packet.h:34
unsigned short sll_protocol
Physical-layer protocol.
Definition packet.h:33