diff options
author | guy <guy> | 2005-04-19 04:25:00 +0000 |
---|---|---|
committer | guy <guy> | 2005-04-19 04:25:00 +0000 |
commit | 97a8e5112d9f004bec63db30c42e16a96e0aab0b (patch) | |
tree | 41dfe802a98622ba4db42735acbaa06b37310a3a /grammar.y | |
parent | b423e170246706185004faa75aab6cbe68000280 (diff) |
From Patrick Marie <mycroft@virgaria.org>: add support for port ranges
in tests - "portrange X-Y" matches all ports in the range [X,Y].
Support added for port ranges with IPv6.
Fix some comments.
Diffstat (limited to 'grammar.y')
-rw-r--r-- | grammar.y | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -22,7 +22,7 @@ */ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/grammar.y,v 1.86 2004-12-18 08:49:23 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/grammar.y,v 1.87 2005-04-19 04:25:01 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -114,7 +114,7 @@ pcap_parse() %type <blk> atmfieldvalue atmvalue atmlistvalue %token DST SRC HOST GATEWAY -%token NET NETMASK PORT LESS GREATER PROTO PROTOCHAIN CBYTE +%token NET NETMASK PORT PORTRANGE LESS GREATER PROTO PROTOCHAIN CBYTE %token ARP RARP IP SCTP TCP UDP ICMP IGMP IGRP PIM VRRP %token ATALK AARP DECNET LAT SCA MOPRC MOPDL %token TK_BROADCAST TK_MULTICAST @@ -271,6 +271,7 @@ dqual: SRC { $$ = Q_SRC; } aqual: HOST { $$ = Q_HOST; } | NET { $$ = Q_NET; } | PORT { $$ = Q_PORT; } + | PORTRANGE { $$ = Q_PORTRANGE; } ; /* non-directional address type qualifiers */ ndaqual: GATEWAY { $$ = Q_GATEWAY; } |