summaryrefslogtreecommitdiff
path: root/lib/libpcap/scanner.l
diff options
context:
space:
mode:
authorDug Song <dugsong@cvs.openbsd.org>2000-06-29 06:56:14 +0000
committerDug Song <dugsong@cvs.openbsd.org>2000-06-29 06:56:14 +0000
commit031377ecf9464f4224fb08fdf02ee82a273d1d7e (patch)
tree63f4cf2443ec9ac7ca60632aade0112b1507c8be /lib/libpcap/scanner.l
parent199a738f694676dd22163d3d76251f95298169f1 (diff)
remove legacy over-general :{B} match for MAC addresses, fixing filters like 'arp[6:2] = 2'. ok angelos@
Diffstat (limited to 'lib/libpcap/scanner.l')
-rw-r--r--lib/libpcap/scanner.l6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libpcap/scanner.l b/lib/libpcap/scanner.l
index 01672e0c02a..77b7cdf6232 100644
--- a/lib/libpcap/scanner.l
+++ b/lib/libpcap/scanner.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scanner.l,v 1.9 2000/04/26 21:25:53 jakob Exp $ */
+/* $OpenBSD: scanner.l,v 1.10 2000/06/29 06:56:13 dugsong Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -24,7 +24,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/scanner.l,v 1.9 2000/04/26 21:25:53 jakob Exp $ (LBL)";
+ "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/scanner.l,v 1.10 2000/06/29 06:56:13 dugsong Exp $ (LBL)";
#endif
#include <sys/types.h>
@@ -233,8 +233,6 @@ outbound return OUTBOUND;
"==" return '=';
"<<" return LSH;
">>" return RSH;
-:{B} { yylval.e = pcap_ether_aton(((char *)yytext)+1);
- return AID; }
{N} { yylval.i = stoi((char *)yytext); return NUM; }
({N}\.{N})|({N}\.{N}\.{N})|({N}\.{N}\.{N}\.{N}) {
yylval.s = sdup((char *)yytext); return HID; }