1%{ 2/* 3 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that: (1) source code distributions 8 * retain the above copyright notice and this paragraph in its entirety, (2) --- 5 unchanged lines hidden (view full) --- 14 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 15 * the University nor the names of its contributors may be used to endorse 16 * or promote products derived from this software without specific prior 17 * written permission. 18 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 19 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 20 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 * |
22 * $FreeBSD: head/contrib/libpcap/scanner.l 147897 2005-07-11 03:43:25Z sam $ |
23 */ 24 25#ifndef lint 26static const char rcsid[] _U_ = |
27 "@(#) $Header: /tcpdump/master/libpcap/scanner.l,v 1.99.2.3 2005/06/20 21:30:19 guy Exp $ (LBL)"; |
28#endif 29 30#ifdef HAVE_CONFIG_H 31#include "config.h" 32#endif 33 34#include <ctype.h> 35#include <string.h> --- 143 unchanged lines hidden (view full) --- 179sctp return SCTP; 180tcp return TCP; 181udp return UDP; 182icmp return ICMP; 183igmp return IGMP; 184igrp return IGRP; 185pim return PIM; 186vrrp return VRRP; |
187radio return RADIO; |
188 189ip6 { 190#ifdef INET6 191 return IPV6; 192#else 193 bpf_error("%s not supported", yytext); 194#endif 195 } --- 35 unchanged lines hidden (view full) --- 231ipx return IPX; 232 233netbeui return NETBEUI; 234 235host return HOST; 236net return NET; 237mask return NETMASK; 238port return PORT; |
239portrange return PORTRANGE; |
240proto return PROTO; 241protochain { 242#ifdef NO_PROTOCHAIN 243 bpf_error("%s not supported", yytext); 244#else 245 return PROTOCHAIN; 246#endif 247 } --- 34 unchanged lines hidden (view full) --- 282 283on|ifname return PF_IFNAME; 284rset|ruleset return PF_RSET; 285rnr|rulenum return PF_RNR; 286srnr|subrulenum return PF_SRNR; 287reason return PF_REASON; 288action return PF_ACTION; 289 |
290sio return SIO; 291opc return OPC; 292dpc return DPC; 293sls return SLS; 294 |
295[ \r\n\t] ; 296[+\-*/:\[\]!<>()&|=] return yytext[0]; 297">=" return GEQ; 298"<=" return LEQ; 299"!=" return NEQ; 300"==" return '='; 301"<<" return LSH; 302">>" return RSH; --- 127 unchanged lines hidden --- |