diff options
author | Gerald Combs <gerald@wireshark.org> | 1999-09-11 22:36:38 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 1999-09-11 22:36:38 +0000 |
commit | feda83f7e000cc96c045f24a4b8581f794ab2ea0 (patch) | |
tree | c131f7fe521ff9d8cd29f44247b4373fd851d1a8 /wiretap/ascend-scanner.l | |
parent | 4ac044cc3e8a7bbb4b8d65eb8939ae6b3c2a9ec4 (diff) |
Added Guy's patch to use the pseudo header facility to pass up the Ascend
metadata.
Also added filter items for the session and task number.
svn path=/trunk/; revision=664
Diffstat (limited to 'wiretap/ascend-scanner.l')
-rw-r--r-- | wiretap/ascend-scanner.l | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/wiretap/ascend-scanner.l b/wiretap/ascend-scanner.l index e70f162778..2b7f21545b 100644 --- a/wiretap/ascend-scanner.l +++ b/wiretap/ascend-scanner.l @@ -10,7 +10,7 @@ #include "ascend.h" #include "ascend-grammar.h" -extern ascend_pkthdr header; +struct ascend_phdr *pseudo_header; int at_eof; int mul, scratch; @@ -57,8 +57,10 @@ EPFX "ETHER " <sc_user>[^:]+ { BEGIN(sc_sess); - strncpy(header.user, ascendtext, ASCEND_MAX_STR_LEN); - header.user[ASCEND_MAX_STR_LEN - 1] = '\0'; + if (pseudo_header != NULL) { + strncpy(pseudo_header->user, ascendtext, ASCEND_MAX_STR_LEN); + pseudo_header->user[ASCEND_MAX_STR_LEN - 1] = '\0'; + } return USERNAME; } |