aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2005-08-22 23:11:48 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2005-08-22 23:11:48 +0000
commit9362605183179e8b5e901b9bc18c4fa9848531c8 (patch)
tree4706a918a4a24970888c19b8113b9d87466abb90 /epan
parent412ae3d09dfb7fca622f1b597b5905dbe9e89bad (diff)
Two fixes to tektronix k12 import:
- it appears that there are more packet record types other than 0x00010020. accept anything matching 0x00010020/28 as a packet record. - make the stack filename lowercase before comparing it so that capitalization is not an issue. svn path=/trunk/; revision=15513
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-k12.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-k12.c b/epan/dissectors/packet-k12.c
index fc561a5414..8dbfa17220 100644
--- a/epan/dissectors/packet-k12.c
+++ b/epan/dissectors/packet-k12.c
@@ -139,11 +139,13 @@ static GHashTable* k12_load_config(const gchar* filename) {
}
if (len > 0) {
+
lines = g_strsplit(buffer,"\n",0);
for (i = 0 ; lines[i]; i++) {
g_strstrip(lines[i]);
-
+ g_strdown(lines[i]);
+
if(*(lines[i]) == '#' || *(lines[i]) == '\0')
continue;