summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/gencode.c
AgeCommit message (Collapse)AuthorFilesLines
2018-12-09add basic MPLS filtering supportdenis1-3/+34
OK claudio@ jca@
2018-11-10unbreak VLAN filteringdenis1-2/+7
OK dlg@
2018-11-09fix a typodenis1-2/+2
OK jca@ (from a long time ago...)
2018-06-03Change some libpcap functions which use pointers as arguments andsthen1-3/+3
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.
2018-02-06recognise DLT_PPP_SERIAL.dlg1-1/+6
shlib version doesnt need a bump before no new symbols were added or removed. part of a larger diff that was ok sthen@
2018-02-03Simple USBPcap parser for tcpdump(8). Raw dumps can be nicely analysedmpi1-1/+3
in wireshark. ok deraadt@, dlg@
2016-11-20Extend the DLT_OPENFLOW header to include the switch datapath id.reyk1-2/+2
OK rzalamena@
2016-11-16Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),reyk1-1/+6
eg. tcpdump -y openflow -i switch0 Includes a minor bump for libpcap. Feedback and OK rzalamena@
2015-12-22remove NULL-checks before free()mmcc1-6/+5
2015-11-17Remove register keyword.mmcc1-32/+32
ok deraadt@
2015-11-17memory.h -> string.hmmcc1-2/+2
ok deraadt@
2015-09-27lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */guenther1-2/+1
(others require more care)
2015-01-16Move to the <limits.h> universe.deraadt1-1/+2
review by millert, binary checking process with doug, concept with guenther
2014-11-20Yet more #include de-duplication.krw1-2/+1
ok deraadt@ tedu@
2014-03-14Remove pointless casts. No binary change.lteo1-2/+2
suggested by krw@
2014-03-14Change a few malloc+memset calls to calloc.lteo1-4/+3
ok deraadt@ florian@
2010-10-09Fix typo in pflog header size computation. Fixes filtering with the newcanacar1-2/+2
pflog headers. reported by jmc@, tested by jmc@ and sthen@, ok sthen@
2010-09-08Make tcpdump of pflog interfaces work with 'net <net>' expression.krw1-3/+3
My problem, canacar@'s fix. ok sthen@ canacar@
2010-07-27Properly handle the size field in pflog link headercanacar1-45/+236
when generating the filter. This will allow the pflog header to be extended without adding a new link type. No change to generated code for other link types. ok henning@
2010-06-26remove support for the old pflog format, replaced in 2003henning1-34/+1
ok ryan theo & herr reyksminister
2009-09-18Zero out IPv6 mask before using it. This fixes expressions likebluhm1-1/+2
'net 2002::/16', which were previously non-deterministic based on the previous contents of memory. from upstream; ok claudio@
2008-06-15Swap the code for a calling function and what it calls, so that the calledderaadt1-14/+14
function is in scope and a pointer is not returned via an int ok dtucker
2008-06-11Import vlan support from upstream libpcap. This allows, eg, "tcpdump vla 3"dtucker1-1/+99
to work on a vlan parent interface. ok mcbride@, "commit it" deraadt@
2007-11-06fix format stringchl1-2/+2
ok ray@ gilles@
2007-01-02remove extra \n in bpf_error() calls.reyk1-10/+10
figured out by claudio@
2007-01-02define bpf filters to match address and header fields in IEEE 802.11reyk1-10/+194
wlan frames (DLT_IEEE802_11 and DLT_IEEE802_11_RADIO linktypes). see tcpdump(8) for details. "Works for me" claudio@ ok jmc@ deraadt@
2006-07-18get rid of arc network support. we have no users of it so this is deaddlg1-93/+1
code. however, it is still cluttering up the kernel namespace a bit. it is better gone. ok claudio@
2005-10-07Add Spanning Tree Protocol support.mpf1-3/+54
Bump version to 3.1. OK brad@
2005-06-04Fix description in a comment.joel1-2/+2
2005-02-28add DLT_IEEE802_11_RADIO (802.11 + radiotap header)reyk1-1/+6
ok jsg@ deraadt@
2004-05-21add DLT_PPP_ETHER supportbrad1-1/+11
ok canacar@ From: Marc Huber <pppoe at pro-bono-publico dot de>
2004-01-27remove $Header, it was messing up cvs for me. ok deraadt@tedu1-5/+1
2004-01-26add DLT_IEEE802_11 support; from NetBSD. bump minor.fgsch1-2/+7
deraadt@ ok.
2003-05-14libpcap and tcpdump now understand the new pflog datalink type.canacar1-18/+99
old datalink type is still recognized. ok henning@ dhartmei@ frantzen@
2002-11-29tcpdump support for pfsync; henning@ okmickey1-2/+7
2002-07-09more error checking of memory allocation, from clodder@acm.org. okay deraadt@provos1-2/+5
2002-03-23language extensions for PF logs. can specify direction, interface, rulefrantzen1-9/+96
number, reason and action. fix the ipv4/ipv6 distinction while I'm here.
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert1-18/+2
2001-12-17fix memory leak associated with compiled BPF program, sync'd from tcpdump.org. ok itojun@dugsong1-2/+16
2001-06-25DLT_PFLOGprovos1-2/+8
2000-04-26sync with libpcap v0.5jakob1-23/+998
add support for INET6 (kame)
1999-07-20changes brought in from v0.4; started by brad, more by me, being tested by mtsderaadt1-96/+219
1998-08-31DLT_LOOP has network byte order headerderaadt1-2/+8
1998-07-14buf oflowsderaadt1-2/+3
1998-06-11handle IPSec processed packets (DLT_ENC) in libpcap, display them withprovos1-1/+7
tcpdump + additional info (SPI + which type of transforms where passed).
1998-06-04add DLT_LOOP support; 4-byte header indicates proto; cstone@pobox.comderaadt1-2/+8
1997-07-25#if __STDC__ --> #ifdef __STDC__mickey1-5/+5
1996-09-16Use __inlinetholo1-11/+11
1996-07-12bring it to the latest 0.2 LBL release.mickey1-104/+162
1996-06-10merge to latest libpcapderaadt1-63/+63