From baf47305fabce02017642b0f43472ab5a4eaa533 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Fri, 29 Jan 2016 00:06:24 +0200 Subject: trafgen: l3: Add IPv4 header generation backend Add L3 module for implement L3 layer protocols generation. Implemented setting of IPv4 header with all fields except options. By default IPv4 address of output device is used as src ip address. On finish (after packet is specified) - total len & checksum are calculated. Meanwhile Ethernet protocol is initialized as default lower header. If the lower protocol is IPv4 then IPv4 protocol id is set to IP-in-IP in lower protocol header. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- trafgen/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'trafgen') diff --git a/trafgen/Makefile b/trafgen/Makefile index 1c95118..4f342ca 100644 --- a/trafgen/Makefile +++ b/trafgen/Makefile @@ -21,6 +21,7 @@ trafgen-objs = xmalloc.o \ cpp.o \ trafgen_proto.o \ trafgen_l2.o \ + trafgen_l3.o \ trafgen_lexer.yy.o \ trafgen_parser.tab.o \ trafgen.o -- cgit v1.2.3-54-g00ecf