tcpdump mailing list archives

Re: libpcap doesn't close filter-file


From: "Gisle Vanem" <giva () bgnett no>
Date: Sat, 8 Feb 2003 14:59:27 +0100

"Guy Harris" <guy () netapp com> said:

doesn't close() the filter-expression file.
Is that intentional or an omission?

As far as I know, it's an omission.


Attached is a patch that adds a close(), fixes the file-mode and allows
comments in the filter-expression file. Also need this patch in libpcap:
-------------------------------------------
--- ./scanner.l.orig   Fri Dec  6 00:01:36 2002
+++ ./scanner.l      Sat Feb  8 14:58:28 2003
@@ -276,7 +276,7 @@
 connectmsg     return CONNECTMSG;
 metaconnect    return METACONNECT;

-[ \n\t]                        ;
+[ \r\n\t]                      ;
 [+\-*/:\[\]!<>()&|=]   return yytext[0];
 ">="                   return GEQ;
 "<="                   return LEQ;

-------------------------------------------

Gisle V.

Not what you think it is;  http://www.nice-tits.org
  

Attachment: util.dif
Description:


Current thread: