diff options
author | Dug Song <dugsong@cvs.openbsd.org> | 2000-06-29 06:56:14 +0000 |
---|---|---|
committer | Dug Song <dugsong@cvs.openbsd.org> | 2000-06-29 06:56:14 +0000 |
commit | 031377ecf9464f4224fb08fdf02ee82a273d1d7e (patch) | |
tree | 63f4cf2443ec9ac7ca60632aade0112b1507c8be /lib/libpcap/grammar.y | |
parent | 199a738f694676dd22163d3d76251f95298169f1 (diff) |
remove legacy over-general :{B} match for MAC addresses, fixing filters like 'arp[6:2] = 2'. ok angelos@
Diffstat (limited to 'lib/libpcap/grammar.y')
-rw-r--r-- | lib/libpcap/grammar.y | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libpcap/grammar.y b/lib/libpcap/grammar.y index f188378473c..b598d285d27 100644 --- a/lib/libpcap/grammar.y +++ b/lib/libpcap/grammar.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: grammar.y,v 1.7 2000/04/26 21:25:53 jakob Exp $ */ +/* $OpenBSD: grammar.y,v 1.8 2000/06/29 06:56:13 dugsong Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996 @@ -24,7 +24,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/grammar.y,v 1.7 2000/04/26 21:25:53 jakob Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/grammar.y,v 1.8 2000/06/29 06:56:13 dugsong Exp $ (LBL)"; #endif #include <sys/types.h> @@ -110,14 +110,13 @@ pcap_parse() %token NUM INBOUND OUTBOUND %token LINK %token GEQ LEQ NEQ -%token ID EID HID HID6 AID +%token ID EID HID HID6 %token LSH RSH %token LEN %token IPV6 ICMPV6 AH ESP %type <s> ID %type <e> EID -%type <e> AID %type <s> HID HID6 %type <i> NUM @@ -189,7 +188,6 @@ nid: ID { $$.b = gen_scode($1, $$.q = $<blk>0.q); } #endif /*INET6*/ } | EID { $$.b = gen_ecode($1, $$.q = $<blk>0.q); } - | AID { $$.b = gen_acode($1, $$.q = $<blk>0.q); } | not id { gen_not($2.b); $$ = $2; } ; not: '!' { $$ = $<blk>0; } |