The friendly Operating System for the Internet of Things
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 PACKET_H
22 #define PACKET_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 struct sockaddr_ll {
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 /* PACKET_H */
unsigned short sll_family
Always AF_PACKET.
Definition: packet.h:32
Link-Layer socket descriptor.
Definition: packet.h:31
unsigned short sll_hatype
ARP hardware type.
Definition: packet.h:35
unsigned char sll_addr[8]
Physical-layer address.
Definition: packet.h:38
unsigned char sll_halen
Length of address.
Definition: packet.h:37
int sll_ifindex
Interface number.
Definition: packet.h:34
unsigned char sll_pkttype
Packet type.
Definition: packet.h:36
unsigned short sll_protocol
Physical-layer protocol.
Definition: packet.h:33