summaryrefslogtreecommitdiff
path: root/cesar/lib
diff options
context:
space:
mode:
authorYacine Belkadi2012-06-22 12:21:23 +0200
committerYacine Belkadi2012-09-07 15:21:54 +0200
commit6ee1fe65c2db9d769c986af6ff98fb584046901f (patch)
tree856b669ff83d1ac6775ee8f0f4e45afc1d53ed38 /cesar/lib
parente1a4682d5a2bc137c96c7acd290f9ae6dc1c1a98 (diff)
cesar/{common,lib/seq_check}: move Ethertype macro to ethernet.h
seq_check defines the macro SEQ_CHECK_ET_IP in its header file. ethernet.h is more appropriate.
Diffstat (limited to 'cesar/lib')
-rw-r--r--cesar/lib/seq_check.h5
-rw-r--r--cesar/lib/src/seq_check.c3
2 files changed, 2 insertions, 6 deletions
diff --git a/cesar/lib/seq_check.h b/cesar/lib/seq_check.h
index 70b1fa31be..6283c0a9a3 100644
--- a/cesar/lib/seq_check.h
+++ b/cesar/lib/seq_check.h
@@ -55,11 +55,6 @@ typedef void
uint seq_actual);
/**
- * Ethernet type IP.
- */
-#define SEQ_CHECK_ET_IP 0x0800
-
-/**
* Sequence counters.
* This structure is used to store states of the sequence counter. There is
* one for each VLAN.
diff --git a/cesar/lib/src/seq_check.c b/cesar/lib/src/seq_check.c
index 5b7d0a1e01..afa88c203f 100644
--- a/cesar/lib/src/seq_check.c
+++ b/cesar/lib/src/seq_check.c
@@ -13,6 +13,7 @@
*
*/
#include "common/std.h"
+#include "common/defs/ethernet.h"
#include "lib/bitstream.h"
#include "lib/swap.h"
#include "lib/stats.h"
@@ -52,7 +53,7 @@ lib_seq_check_config_init (void)
{
.seq_size = 16,
.seq_pos = 44, /* For IPerf. */
- .ethertype = SEQ_CHECK_ET_IP, /* No check for Ethernet type. */
+ .ethertype = ETH_TYPE_IP, /* No check for Ethernet type. */
};
lib_seq_check_config_set (&config);