summaryrefslogtreecommitdiffstats
path: root/lib/libpcap/pcap.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add two functions from libpcap-1.7.4 which are required by at least gopacketjasper2016-04-061-1/+4
| | | | ok lteo@ "go for it" dlg@
* refactor bpf_filter a bit.dlg2016-04-021-3/+1
| | | | | | | | | | | | | | | | | | | | | | | the code was confusing around how it dealt with packets in mbufs vs plain memory buffers with a lenght. this renames bpf_filter to _bpf_filter, and changes it so the packet memory is referred to by an opaque pointer, and callers have to provide a set of operations to extra values from that opaque pointer. bpf_filter is now provided as a wrapper around _bpf_filter. it provides a set of operators that work on a straight buffer with a lenght. this also adds a bpf_mfilter function which takes an mbuf instead of a buffer, and it provides explicit operations for extracting values from mbufs. if we want to use bpf filters against other data structures (usb or scsi packets maybe?) we are able to provide functions for extracting payloads from them and use _bpf_filter as is. ok canacar@
* Zap CVS $Header tags, reduces diff with upstream's repolteo2014-04-111-3/+1
| | | | ok deraadt@
* Import a number of core functions from libpcap-1.2.0 while preservinglteo2012-05-251-2/+40
| | | | | | | | | | | | | | | | | | | | | | | | local changes: strncpy() -> strlcpy(), malloc(x * y) -> calloc(x, y), exclude cross-platform cruft, etc. The new functions are pcap_create(), pcap_set_snaplen(), pcap_set_promisc(), pcap_can_set_rfmon(), pcap_set_rfmon(), pcap_set_timeout(), pcap_set_buffer_size(), pcap_activate(), and pcap_statustostr(). This diff was tested on amd64, i386, macppc, and sparc64, where regression tests were done on various pcap-based ports (especially amd64 and i386 where regression tests were run on all pcap-based ports). Testers also tried running pcap-based ports that they are familiar with to ensure that there is no behavioral change. tcpdump and pflogd in base were also tested by different testers. The new pcap_* functions were tested with a proof-of-concept Snort 2.9 port for many months. Thank you to everyone who helped test this diff and provided feedback: haesbaert@, sthen@, matthew@, gonzalo@, brett@, Rodolfo Gouveia, Aaron Bieber, Markus Lude, and Ray Percival. ok haesbaert sthen henning
* add remaining tcpdump.org libpcap 0.9 APIs, most notablydjm2006-03-261-7/+25
| | | | | pcap_setdirection() (which depends on the kernel-side bpf changes committed yesterday); ok canacar@
* pull in the good bits of libpcap-0.9.4's API without the cross-platformdjm2005-11-181-3/+42
| | | | | | cruft. help from deraadt@, mpf@, jmc@; ok mpf@a nb. this will break tcpdump unless it updated too
* make safe for inclusion in C++ code; ok deraadt@naddy2004-06-241-2/+4
|
* add pcap_inject back into the header fileericj2002-01-171-2/+3
|
* fix memory leak associated with compiled BPF program, sync'd from tcpdump.org. ok itojun@dugsong2001-12-171-4/+3
|
* change timeval to bpf_timeval; 32 bit in size, permitting much greater portabilityderaadt2001-10-021-3/+3
|
* sync with libpcap v0.5jakob2000-04-261-2/+4
| | | | add support for INET6 (kame)
* changes brought in from v0.4; started by brad, more by me, being tested by mtsderaadt1999-07-201-9/+5
|
* bring it to the latest 0.2 LBL release.mickey1996-07-121-9/+12
|
* merge to latest libpcapderaadt1996-06-101-5/+4
|
* correct bpf typesderaadt1996-05-071-4/+4
|
* Update to the latest LBL release.mickey1996-03-041-0/+1
|
* pcap inject function is a good idea; from scottr@edsi.org; netbsd pr#1747deraadt1995-11-131-0/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+139