repo.or.cz
/
netsniff-ng-new.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
trafgen: ipv4: Do not use user-provided 'ihl' field to calculate csum
[netsniff-ng-new.git]
/
trafgen_l2.h
blob
14f0e84d4344fd7c9e5e5f63416404d7730b893c
1
#ifndef TRAFGEN_L2_H
2
#define TRAFGEN_L2_H
3
4
enum
eth_field
{
5
ETH_DST_ADDR
,
6
ETH_SRC_ADDR
,
7
ETH_TYPE
,
8
};
9
10
enum
arp_field
{
11
ARP_HTYPE
,
12
ARP_PTYPE
,
13
ARP_HLEN
,
14
ARP_PLEN
,
15
ARP_OPER
,
16
ARP_SHA
,
17
ARP_SPA
,
18
ARP_THA
,
19
ARP_TPA
,
20
};
21
22
enum
vlan_field
{
23
VLAN_TPID
,
24
VLAN_TCI
,
25
VLAN_PCP
,
26
VLAN_DEI
,
27
VLAN_VID
,
28
VLAN_ETYPE
,
29
};
30
31
enum
mpls_field
{
32
MPLS_LABEL
,
33
MPLS_TC
,
34
MPLS_LAST
,
35
MPLS_TTL
,
36
};
37
38
extern
void
protos_l2_init
(
void
);
39
40
#endif
/* TRAFGEN_L2_H */