Modified:
resources/tcpdump2xml
Log:
Hack to make script work in the absence of vlan identifiers
Modified: resources/tcpdump2xml
==============================================================================
--- resources/tcpdump2xml (original)
+++ resources/tcpdump2xml Thu Jan 22 12:03:26 2009
@@ -34,6 +34,9 @@
{
gsub("<", "\\<", $0)
gsub(">", "\\>", $0)
+ if ($(2) != "vlan") {
+ gsub($(1), $(1) " vlan 1, ip 0,", $0)
+ }
if ($(6) == "IP") {
sub(",", "", $3)
printf(" <packet type=\"IP\" vlan=\"%s\">\n", $3)