OpenBSD CVS

CVS log for src/lib/libpcap/scanner.l


[BACK] Up to [local] / src / lib / libpcap

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.30 / (download) - annotate - [select for diffs], Mon Apr 8 02:51:14 2024 UTC (2 months ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

more ansi function decls
ok deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Fri Apr 5 18:01:56 2024 UTC (2 months ago) by deraadt
Branch: MAIN
Changes since 1.28: +4 -7 lines
Diff to previous 1.28 (colored)

ANSI functions; ok tb

Revision 1.28 / (download) - annotate - [select for diffs], Mon Aug 3 03:40:02 2020 UTC (3 years, 10 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.27: +1 -0 lines
Diff to previous 1.27 (colored)

add "sample NUM" so you can ask to capture 1/NUM packets from a filter.

the use of the sample keyword matches similar config in other
products.

NUM can be a number between 2 and 1048576, and is used to divide
0x100000000 into a threshold that is then compared against a randomly
generated number produced by a load of BPF_RND.

having sampling as part of the grammar means you can write things
like "icmp or sample 128". this lets you capture all icmp traffic
and a sample of the rest of the traffic.

ok jmatthew@ kn@ tb@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Aug 3 03:29:58 2020 UTC (3 years, 10 months ago) by dlg
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

add support for handling loads from BPF_RND.

this adds "rnd" and "random" as keywords in the grammar, and handles
them as an arithmetic operator. the decoder recognises the load,
so tcpdump can print it as 'ld #random'. most of the handling is
copied from the "len"/"length" keywoard handling that generates and
decodes a load of the actual wire length of the packet.

ok jmatthew@ tb@ kn@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Dec 9 15:07:06 2018 UTC (5 years, 6 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.25: +2 -1 lines
Diff to previous 1.25 (colored)

add basic MPLS filtering support

OK claudio@ jca@

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jun 3 10:29:28 2018 UTC (6 years ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.24: +4 -4 lines
Diff to previous 1.24 (colored)

Change some libpcap functions which use pointers as arguments and
returns to const pointers:

- the prefix argument to pcap_perror();
- the return value of pcap_strerror();
- the filter expression argument to pcap_compile() and pcap_compile_nopcap();
- the BPF filter program argument to bpf_image().

Matches changes made earlier in tcpdump.org's version of libpcap.
From Guy Harris, ok tb@, been through a bulk ports build.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jul 9 15:32:09 2017 UTC (6 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

use working boilerplate for yacc/lex instead of homemade rules.
okay millert@
(forgot the obvious scanner.l tweak in my diff)

Revision 1.23 / (download) - annotate - [select for diffs], Tue Nov 17 21:39:23 2015 UTC (8 years, 6 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Remove register keyword.

ok deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 28 07:54:16 2011 UTC (13 years, 2 months ago) by giovanni
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.21: +25 -1 lines
Diff to previous 1.21 (colored)


Add icmptype and tcpflags support to the grammar
ok claudio@ jsing@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 27 23:59:30 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.20: +1 -6 lines
Diff to previous 1.20 (colored)

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable).  these days, people use source.  these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 11 15:02:21 2008 UTC (16 years ago) by dtucker
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (colored)

Import vlan support from upstream libpcap.  This allows, eg, "tcpdump vla 3"
to work on a vlan parent interface.  ok mcbride@, "commit it" deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 2 18:31:21 2007 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.18: +11 -2 lines
Diff to previous 1.18 (colored)

define bpf filters to match address and header fields in IEEE 802.11
wlan frames (DLT_IEEE802_11 and DLT_IEEE802_11_RADIO linktypes). see
tcpdump(8) for details.

"Works for me" claudio@
ok jmc@ deraadt@

Revision 1.18 / (download) - annotate - [select for diffs], Tue Apr 18 18:17:52 2006 UTC (18 years, 1 month ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.17: +10 -4 lines
Diff to previous 1.17 (colored)

strnvis illegal tokens as well and remove a spurious "i" that crept in
the pattern long ago; ok deraadt@ and markus@ for the "i" removal

Revision 1.17 / (download) - annotate - [select for diffs], Tue Apr 18 16:59:02 2006 UTC (18 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.16: +9 -3 lines
Diff to previous 1.16 (colored)

vis() illegal characters; ok otto

Revision 1.16 / (download) - annotate - [select for diffs], Fri Oct 7 19:32:39 2005 UTC (18 years, 8 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

Add Spanning Tree Protocol support.
Bump version to 3.1.
OK brad@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 27 18:26:57 2005 UTC (18 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

accept hostnames 1 char long; spotted by otto, ok otto

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 14 08:50:37 2003 UTC (21 years, 1 month ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.13: +4 -2 lines
Diff to previous 1.13 (colored)

libpcap and tcpdump now understand the new pflog datalink type.
old datalink type is still recognized.

ok henning@ dhartmei@ frantzen@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 26 22:43:53 2002 UTC (21 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored)

must yyrestart after longjmp; moritz@jodeit.org

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 23 01:33:16 2002 UTC (22 years, 2 months ago) by frantzen
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.11: +7 -2 lines
Diff to previous 1.11 (colored)

language extensions for PF logs.  can specify direction, interface, rule
number, reason and action.  fix the ipv4/ipv6 distinction while I'm here.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jul 6 23:52:24 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.10: +3 -2 lines
Diff to previous 1.10 (colored)

#include string.h to get memset() prototype

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 29 06:56:13 2000 UTC (23 years, 11 months ago) by dugsong
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.9: +2 -4 lines
Diff to previous 1.9 (colored)

remove legacy over-general :{B} match for MAC addresses, fixing filters like 'arp[6:2] = 2'. ok angelos@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 26 21:25:53 2000 UTC (24 years, 1 month ago) by jakob
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.8: +121 -3 lines
Diff to previous 1.8 (colored)

sync with libpcap v0.5
add support for INET6 (kame)

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 20 04:49:56 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.7: +12 -7 lines
Diff to previous 1.7 (colored)

changes brought in from v0.4; started by brad, more by me, being tested by mts

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 26 21:01:03 1998 UTC (25 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

handle single char hostnames; jch@honig.net

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 22 07:42:32 1997 UTC (26 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2
Changes since 1.5: +8 -7 lines
Diff to previous 1.5 (colored)

permit numbers at start of hostname; leres@ee.lbl.gov

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 12 13:19:13 1996 UTC (27 years, 11 months ago) by mickey
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.4: +11 -8 lines
Diff to previous 1.4 (colored)

bring it to the latest 0.2 LBL release.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jun 18 16:26:21 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

libpcap used yyparse(), which is bad; netbsd pr#2031; lukem@supp.cpr.itg.telecom.com.au

Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 10 07:23:33 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

merge to latest libpcap

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 4 15:47:30 1996 UTC (28 years, 3 months ago) by mickey
Branch: MAIN
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

Update to the latest LBL release.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:43:02 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:43:02 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.