text2pcap: Fix TCP, UDP or SCTP headers over IPv6
authorVasil Velichkov <vvvelichkov@gmail.com>
Tue, 9 Oct 2018 21:40:04 +0000 (00:40 +0300)
committerPeter Wu <peter@lekensteyn.nl>
Thu, 11 Oct 2018 14:01:48 +0000 (14:01 +0000)
commit6c19f98393aa20d6ab56b0afa563084e573c4728
tree09ef2c252e0d5b3945dc7a0da0f7e836b15affd3
parent19153cf9113c73f110f1f40d37cbf232f056fa51
text2pcap: Fix TCP, UDP or SCTP headers over IPv6

When the IPv6 (-6) option was specified together with either TCP (-T),
UDP (-u) or SCTP (-s/-S) option the generated packet was invalid because
an IPv4 option was implied an a wrong header was added.

Bug: 15194
Change-Id: I5a7b83d8aa3f3ad56f0c8110e598090945e60225
Reviewed-on: https://code.wireshark.org/review/30107
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
test/suite_text2pcap.py
text2pcap.c