diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-09-22 23:55:33 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-10-04 17:17:24 +0200 |
commit | f4c1856026c0edcc1e2285cf6ae773057bee51cd (patch) | |
tree | baf5663ef7daf90b5f1cdd4c3e9f31868034238d /trafgen_l2.h | |
parent | 7007975949f5177fbf2514633cc44ba0ac4712c5 (diff) |
trafgen: l2: Add support for IEEE 802.3X PAUSE header
Add EEE802.3X Ethernet MAC Control PAUSE frame proto header with two
fields - opcode & time.
By default Ethernet header is pushed on header init.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_l2.h')
-rw-r--r-- | trafgen_l2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/trafgen_l2.h b/trafgen_l2.h index 14f0e84..7c8ef7d 100644 --- a/trafgen_l2.h +++ b/trafgen_l2.h @@ -7,6 +7,11 @@ enum eth_field { ETH_TYPE, }; +enum pause_field { + PAUSE_OPCODE, + PAUSE_TIME, +}; + enum arp_field { ARP_HTYPE, ARP_PTYPE, |