Deleted Added
full compact
scanner.l (235426) scanner.l (250693)
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 *
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 235426 2012-05-14 05:12:56Z delphij $
22 * $FreeBSD: head/contrib/libpcap/scanner.l 250693 2013-05-16 05:16:56Z hiren $
23 */
24
25#ifndef lint
26static const char rcsid[] _U_ =
27 "@(#) $Header: /tcpdump/master/libpcap/scanner.l,v 1.112 2008-02-06 10:21:30 guy Exp $ (LBL)";
28#endif
29
30#ifdef HAVE_CONFIG_H

--- 349 unchanged lines hidden (view full) ---

380icmp-maskreply { yylval.i = 18; return NUM; }
381tcpflags { yylval.i = 13; return NUM; }
382tcp-fin { yylval.i = 0x01; return NUM; }
383tcp-syn { yylval.i = 0x02; return NUM; }
384tcp-rst { yylval.i = 0x04; return NUM; }
385tcp-push { yylval.i = 0x08; return NUM; }
386tcp-ack { yylval.i = 0x10; return NUM; }
387tcp-urg { yylval.i = 0x20; return NUM; }
23 */
24
25#ifndef lint
26static const char rcsid[] _U_ =
27 "@(#) $Header: /tcpdump/master/libpcap/scanner.l,v 1.112 2008-02-06 10:21:30 guy Exp $ (LBL)";
28#endif
29
30#ifdef HAVE_CONFIG_H

--- 349 unchanged lines hidden (view full) ---

380icmp-maskreply { yylval.i = 18; return NUM; }
381tcpflags { yylval.i = 13; return NUM; }
382tcp-fin { yylval.i = 0x01; return NUM; }
383tcp-syn { yylval.i = 0x02; return NUM; }
384tcp-rst { yylval.i = 0x04; return NUM; }
385tcp-push { yylval.i = 0x08; return NUM; }
386tcp-ack { yylval.i = 0x10; return NUM; }
387tcp-urg { yylval.i = 0x20; return NUM; }
388tcp-ece { yylval.i = 0x40; return NUM; }
389tcp-cwr { yylval.i = 0x80; return NUM; }
388[A-Za-z0-9]([-_.A-Za-z0-9]*[.A-Za-z0-9])? {
389 yylval.s = sdup((char *)yytext); return ID; }
390"\\"[^ !()\n\t]+ { yylval.s = sdup((char *)yytext + 1); return ID; }
391[^ \[\]\t\n\-_.A-Za-z0-9!<>()&|=]+ {
392 bpf_error("illegal token: %s", yytext); }
393. { bpf_error("illegal char '%c'", *yytext); }
394%%
395void

--- 72 unchanged lines hidden ---
390[A-Za-z0-9]([-_.A-Za-z0-9]*[.A-Za-z0-9])? {
391 yylval.s = sdup((char *)yytext); return ID; }
392"\\"[^ !()\n\t]+ { yylval.s = sdup((char *)yytext + 1); return ID; }
393[^ \[\]\t\n\-_.A-Za-z0-9!<>()&|=]+ {
394 bpf_error("illegal token: %s", yytext); }
395. { bpf_error("illegal char '%c'", *yytext); }
396%%
397void

--- 72 unchanged lines hidden ---