Toggle navigation
Documentation
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 NET_PACKET_H
22
#define NET_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
;
34
int
sll_ifindex
;
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 */
sockaddr_ll::sll_pkttype
unsigned char sll_pkttype
Packet type.
Definition:
packet.h:36
sockaddr_ll::sll_addr
unsigned char sll_addr[8]
Physical-layer address.
Definition:
packet.h:38
sockaddr_ll::sll_family
unsigned short sll_family
Always AF_PACKET.
Definition:
packet.h:32
sockaddr_ll::sll_halen
unsigned char sll_halen
Length of address.
Definition:
packet.h:37
sockaddr_ll
Link-Layer socket descriptor.
Definition:
packet.h:31
sockaddr_ll::sll_ifindex
int sll_ifindex
Interface number.
Definition:
packet.h:34
sockaddr_ll::sll_hatype
unsigned short sll_hatype
ARP hardware type.
Definition:
packet.h:35
sockaddr_ll::sll_protocol
unsigned short sll_protocol
Physical-layer protocol.
Definition:
packet.h:33
Generated on Tue Nov 24 2020 19:46:52 by
1.8.17