From feda83f7e000cc96c045f24a4b8581f794ab2ea0 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sat, 11 Sep 1999 22:36:38 +0000 Subject: 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 --- wiretap/ascend-scanner.l | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'wiretap/ascend-scanner.l') 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 " [^:]+ { 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; } -- cgit v1.2.3