trafgen: l4: Add UDP header generation logic
commitd275f16591ca44d91ee4e56d65553529a429a62d
authorVadim Kochan <vadim4j@gmail.com>
Thu, 28 Jan 2016 22:06:26 +0000 (29 00:06 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 29 Jan 2016 07:59:25 +0000 (29 08:59 +0100)
tree01b3095e29d9b13c5feceeb1b563f41e3f1f56f4
parentbe21df123309c83cd47a1fa5f2c0ee1cf4657810
trafgen: l4: Add UDP header generation logic

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>
trafgen/Makefile
trafgen_l4.c [new file with mode: 0644]
trafgen_l4.h [new file with mode: 0644]
trafgen_proto.c