trafgen: add csumicmp for ICMP checksum calculation
commitdc35a7bc3a046c919af3a8e59d4dc796c4042abe
authorDaniel Borkmann <dborkman@redhat.com>
Sat, 16 Mar 2013 18:18:03 +0000 (16 19:18 +0100)
committerDaniel Borkmann <dborkman@redhat.com>
Sat, 16 Mar 2013 18:18:03 +0000 (16 19:18 +0100)
treed9fa1963405041c25a53babea9c8152317d369e0
parenta7b0ee3852e05dc92bb98971c09e271d4d7f245e
trafgen: add csumicmp for ICMP checksum calculation

Both, the IP and ICMP checksums use the same algorithm from RFC1071.
Thus, it's enough if we give csumip an alias to csumicmp, so that it
can be used in trafgen packet configurations. It's calculated from
the ICMP header + data, with value 0 for this field.

Suggested-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen_lexer.l