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
Revert "mausezahn: Add error handling for mismatched address families"
[netsniff-ng-new.git]
/
trafgen_l2.h
blob
dd1d947c192016dcd306ca8d71cf9b3879252a9b
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
pause_field
{
11
PAUSE_OPCODE
,
12
PAUSE_TIME
,
13
};
14
15
enum
pfc_field
{
16
PFC_OPCODE
,
17
PFC_PRIO
,
18
PFC_PRIO_0
,
19
PFC_PRIO_1
,
20
PFC_PRIO_2
,
21
PFC_PRIO_3
,
22
PFC_PRIO_4
,
23
PFC_PRIO_5
,
24
PFC_PRIO_6
,
25
PFC_PRIO_7
,
26
PFC_TIME_0
,
27
PFC_TIME_1
,
28
PFC_TIME_2
,
29
PFC_TIME_3
,
30
PFC_TIME_4
,
31
PFC_TIME_5
,
32
PFC_TIME_6
,
33
PFC_TIME_7
,
34
};
35
36
enum
arp_field
{
37
ARP_HTYPE
,
38
ARP_PTYPE
,
39
ARP_HLEN
,
40
ARP_PLEN
,
41
ARP_OPER
,
42
ARP_SHA
,
43
ARP_SPA
,
44
ARP_THA
,
45
ARP_TPA
,
46
};
47
48
enum
vlan_field
{
49
VLAN_TPID
,
50
VLAN_TCI
,
51
VLAN_PCP
,
52
VLAN_DEI
,
53
VLAN_VID
,
54
VLAN_ETYPE
,
55
};
56
57
enum
mpls_field
{
58
MPLS_LABEL
,
59
MPLS_TC
,
60
MPLS_LAST
,
61
MPLS_TTL
,
62
};
63
64
extern
void
protos_l2_init
(
void
);
65
66
#endif
/* TRAFGEN_L2_H */