aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-01-09 07:16:26 -0500
committerJohn Thacker <johnthacker@gmail.com>2022-01-11 08:46:44 -0500
commitf85f077b542ad8c8893c9611189d1ec53be41bab (patch)
tree05353855cc27759a9f3a4cf97d756102d114fd42 /doc
parenta0a67a75fe7879a224903264f2c90ad733c482a5 (diff)
text_import: Allow fake IP headers with Raw IP encapsulation
In text2pcap and Import from Hex Dump, allow fake IP headers with the appropriate versions when the Raw IP, Raw IPv4, and Raw IPv6 encapsulations are specified. In such cases, do not add a dummy Ethernet header. Continue to reject other encapsulations besides these, Ethernet, and Wireshark Upper PDU when appropriate. Add some checks for the encapsulation type in text_import as well, instead of just assuming that the callers handle it correctly.
Diffstat (limited to 'doc')
-rw-r--r--doc/text2pcap.adoc3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/text2pcap.adoc b/doc/text2pcap.adoc
index df6be68a4c..fc9082bf5a 100644
--- a/doc/text2pcap.adoc
+++ b/doc/text2pcap.adoc
@@ -225,7 +225,8 @@ Include dummy IP headers before each packet. Specify the IP protocol
for the packet in decimal. Use this option if your dump is the payload
of an IP packet (i.e. has complete L4 information) but does not have
an IP header with each packet. Note that an appropriate Ethernet header
-is automatically included with each packet as well.
+is automatically included with each packet as well if the link-layer
+type is Ethernet.
Example: __-i 46__ to specify an RSVP packet (IP protocol 46). See
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml for
the complete list of assigned internet protocol numbers.