summaryrefslogtreecommitdiff
path: root/trafgen_l4.c
AgeCommit message (Collapse)AuthorFilesLines
2016-01-29trafgen: l4: Add UDP header generation logicVadim Kochan1-0/+71
Add trafgen_l4.c module with generation UDP header fields. UDP protocol generation logic automaticaly sets the protocol field of the lower level protocol to IPPROTO_UDP by default (if it is IPv4). Also checksum & length are calculated and set if it is not given by the user. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>