summaryrefslogtreecommitdiff
path: root/trafgen_l3.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-29trafgen: l3: Add IPv4 header generation backendVadim Kochan1-0/+82
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 <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>