Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove NULL-checks before free() | 2015-12-22 | 1 | -4/+4 | |
| | |||||
* | Remove register keyword. | 2015-11-17 | 1 | -3/+3 | |
| | | | | ok deraadt@ | ||||
* | remove the #if bsdi path from here as well | 2015-10-01 | 1 | -22/+1 | |
| | |||||
* | fix libpcap for ifmedia64 | 2015-09-11 | 1 | -3/+3 | |
| | |||||
* | Teach monitor_mode() that the return code for unknown ioctl requests was | 2015-02-15 | 1 | -1/+2 | |
| | | | | | | changed from EINVAL to ENOTTY in sys/net/if_media.c r1.19; it should just indicate that monitor mode is not available, rather than return a general error. ok dcoppa jca | ||||
* | Rename pcap_create()'s ebuf argument to errbuf to match the rest of the | 2015-01-16 | 1 | -4/+4 | |
| | | | | | | | public pcap_* functions that use errbuf. Mainline libpcap also uses "errbuf" for pcap_create(). No object file change. | ||||
* | Remove pointless casts for several malloc/calloc/free calls. No object | 2015-01-16 | 1 | -4/+4 | |
| | | | | file change. | ||||
* | Fix a use after free, where the already freed p->opt.source was used by | 2015-01-16 | 1 | -3/+2 | |
| | | | | | | | pcap_cleanup_bpf() to disable monitor mode on 802.11 devices. feedback blambert@ ok deraadt@ mikeb@ millert@ | ||||
* | use reallocarray(); ok lteo | 2014-10-16 | 1 | -5/+5 | |
| | |||||
* | Change a few malloc+memset calls to calloc. | 2014-03-14 | 1 | -3/+2 | |
| | | | | ok deraadt@ florian@ | ||||
* | timeb.h has not been used forever | 2013-12-03 | 1 | -2/+1 | |
| | |||||
* | Import a number of core functions from libpcap-1.2.0 while preserving | 2012-05-25 | 1 | -75/+702 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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 notably | 2006-03-26 | 1 | -2/+36 | |
| | | | | | pcap_setdirection() (which depends on the kernel-side bpf changes committed yesterday); ok canacar@ | ||||
* | malloc fix for bpf interface array allocation (from freebsd). use | 2006-01-16 | 1 | -3/+2 | |
| | | | | | | calloc instead of the proposed fix with additional parentheses. ok moritz@ millert@ | ||||
* | - check for malloc failure | 2006-01-11 | 1 | -5/+6 | |
| | | | | | | | | | - plug some memleaks - avoid close(-1) when open() fails in pcap_open_live() sent upstream where applicable ok djm moritz | ||||
* | pull in the good bits of libpcap-0.9.4's API without the cross-platform | 2005-11-18 | 1 | -2/+111 | |
| | | | | | | cruft. help from deraadt@, mpf@, jmc@; ok mpf@a nb. this will break tcpdump unless it updated too | ||||
* | use the kernel default for buf size. no behavior change by default. | 2004-02-06 | 1 | -1/+4 | |
| | | | | ok canacar@ mcbride@ | ||||
* | remove $Header, it was messing up cvs for me. ok deraadt@ | 2004-01-27 | 1 | -5/+1 | |
| | |||||
* | Replace some strncpy() calls with strlcpy() | 2004-01-21 | 1 | -3/+3 | |
| | | | | tested by jose@, ok canacar@ and otto@ | ||||
* | prevent double-free; from aldo@nullcube.com; dhartmei@ ok | 2003-11-24 | 1 | -7/+16 | |
| | |||||
* | sync with libpcap v0.5 | 2000-04-26 | 1 | -3/+12 | |
| | | | | add support for INET6 (kame) | ||||
* | More <sys/file.h> vs. <fcntl.h> and open() flags fixes. | 1999-08-17 | 1 | -3/+3 | |
| | |||||
* | changes brought in from v0.4; started by brad, more by me, being tested by mts | 1999-07-20 | 1 | -8/+28 | |
| | |||||
* | buf oflows | 1998-07-14 | 1 | -16/+27 | |
| | |||||
* | Fix PR #299 (pcap_inject busted). | 1997-08-13 | 1 | -2/+4 | |
| | |||||
* | Use __inline | 1996-09-16 | 1 | -2/+2 | |
| | |||||
* | bring it to the latest 0.2 LBL release. | 1996-07-12 | 1 | -16/+21 | |
| | |||||
* | merge to latest libpcap | 1996-06-10 | 1 | -1/+1 | |
| | |||||
* | Use __inline, not inline | 1996-03-23 | 1 | -2/+2 | |
| | |||||
* | Update to the latest LBL release. | 1996-03-04 | 1 | -0/+1 | |
| | |||||
* | pcap inject function is a good idea; from scottr@edsi.org; netbsd pr#1747 | 1995-11-13 | 1 | -0/+6 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+238 | |