VSF Documented
if_ether.h
Go to the documentation of this file.
1#ifndef __VSF_LINUX_IF_ETHER_H__
2#define __VSF_LINUX_IF_ETHER_H__
3
4#include <linux/skbuff.h>
5// for CAL(Compiler Abstraction Layer) VSF_CAL_PACKED
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12#define ETH_ALEN 6
13#define ETH_TLEN 2
14#define ETH_HLEN 14
15#define ETH_ZLEN 60
16#define ETH_DATA_LEN 1500
17#define ETH_FRAME_LEN 1514
18#define ETH_FCS_LEN 4
19
20#define ETH_MIN_MTU 68
21#define ETH_MAX_MTU 0xFFFFU
22
23struct ethhdr {
24 unsigned char h_dest[ETH_ALEN];
25 unsigned char h_source[ETH_ALEN];
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif
struct ethhdr VSF_CAL_PACKED
#define ETH_ALEN
Definition if_ether.h:12
__u16 __be16
Definition types.h:60
Definition if_ether.h:23
__be16 h_proto
Definition if_ether.h:26
unsigned char h_source[ETH_ALEN]
Definition if_ether.h:25
unsigned char h_dest[ETH_ALEN]
Definition if_ether.h:24