[sci-flex commit] r417 - resources

0 views
Skip to first unread message

codesite...@google.com

unread,
Jan 22, 2009, 6:20:27 PM1/22/09
to sci-fl...@googlegroups.com
Author: senakafdo
Date: Thu Jan 22 12:03:26 2009
New Revision: 417

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("<", "\\&lt;", $0)
gsub(">", "\\&gt;", $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)

Reply all
Reply to author
Forward
0 new messages