summaryrefslogtreecommitdiffstats
path: root/lib/libpcap (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Cast isxdigit()'s argument to unsigned char.mmcc2015-10-241-2/+2
| | | | ok guenther@
* Cast ctype function arguments to unsigned char.mmcc2015-10-241-3/+3
| | | | ok guenther@
* remove the #if bsdi path from here as welljsg2015-10-011-22/+1
|
* lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */guenther2015-09-271-2/+1
| | | | (others require more care)
* fix libpcap for ifmedia64stsp2015-09-111-3/+3
|
* Fix miscellaneous factual, grammar, and markup errors.lteo2015-04-071-8/+9
| | | | From Jan Stary.
* Teach monitor_mode() that the return code for unknown ioctl requests wassthen2015-02-151-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
* Move to the <limits.h> universe.deraadt2015-01-162-3/+3
| | | | review by millert, binary checking process with doug, concept with guenther
* Complete the list of functions in the paragraph that mentions thatlteo2015-01-161-2/+6
| | | | errbuf needs to hold at least PCAP_ERRBUF_SIZE chars.
* Rename pcap_create()'s ebuf argument to errbuf to match the rest of thelteo2015-01-162-6/+6
| | | | | | | public pcap_* functions that use errbuf. Mainline libpcap also uses "errbuf" for pcap_create(). No object file change.
* Add more missing argument names.lteo2015-01-161-4/+4
|
* Remove pointless casts for several malloc/calloc/free calls. No objectlteo2015-01-164-14/+14
| | | | file change.
* Fix a use after free, where the already freed p->opt.source was used bylteo2015-01-161-3/+2
| | | | | | | pcap_cleanup_bpf() to disable monitor mode on 802.11 devices. feedback blambert@ ok deraadt@ mikeb@ millert@
* remove .Tn; from Jan Stary <hans at stare dot cz>schwarze2015-01-151-10/+6
|
* Add missing argument names, and sync the argument types and names withlteo2014-12-241-19/+19
| | | | | | the ones used in the code. pointed out by schwarze@
* markup fixes, and repair some wrong argument types while here;schwarze2014-12-121-8/+11
| | | | from Kaspars at Bankovskis dot net
* A few last 'easy' #include dedups.krw2014-12-061-5/+1
| | | | ok tedu@
* Yet more #include de-duplication.krw2014-11-201-2/+1
| | | | ok deraadt@ tedu@
* use reallocarray(); ok lteoderaadt2014-10-161-5/+5
|
* Convert several calloc calls to reallocarray. These calloc calls werelteo2014-06-262-9/+10
| | | | | | originally malloc(n * m) calls (without memset/bzero) in the past. ok deraadt@ tedu@
* Zap CVS $Header tags, reduces diff with upstream's repolteo2014-04-119-24/+9
| | | | ok deraadt@
* Remove #ifdef lint block, since lint is gone. This #ifdef block was alteo2014-03-211-11/+1
| | | | | | local addition that has never been part of upstream. No binary change. feedback from guenther@
* Overflow check the calculation for a malloc size.deraadt2014-03-161-8/+39
| | | | XXX noted by lteo, change proofed & tested as well
* Remove pointless casts. No binary change.lteo2014-03-142-4/+4
| | | | suggested by krw@
* Change a few malloc+memset calls to calloc.lteo2014-03-144-13/+9
| | | | ok deraadt@ florian@
* Add tcpdump(8) to the SEE ALSO section, and tweak the formatting in thatlteo2014-02-191-2/+3
| | | | | | | section to follow traditional man(7) conventions. man(7) formatting help from jmc@ and schwarze@ feedback/ok jmc@
* timeb.h has not been used foreverderaadt2013-12-031-2/+1
|
* Switch time_t, ino_t, clock_t, and struct kevent's ident and dataguenther2013-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | members to 64bit types. Assign new syscall numbers for (almost all) the syscalls that involve the affected types, including anything with time_t, timeval, itimerval, timespec, rusage, dirent, stat, or kevent arguments. Add a d_off member to struct dirent and replace getdirentries() with getdents(), thus immensely simplifying and accelerating telldir/seekdir. Build perl with -DBIG_TIME. Bump the major on every single base library: the compat bits included here are only good enough to make the transition; the T32 compat option will be burned as soon as we've reached the new world are are happy with the snapshots for all architectures. DANGER: ABI incompatibility. Updating to this kernel requires extra work or you won't be able to login: install a snapshot instead. Much assistance in fixing userland issues from deraadt@ and tedu@ and build assistance from todd@ and otto@
* zap trailing whitespace;jmc2013-06-251-2/+2
|
* bring return value of pcap_breakloop in sync with reality.sebastia2013-06-251-3/+3
| | | | OK jmc@
* Do not install pcap-int.h to /usr/include as it is an internal librarylteo2013-06-191-2/+2
| | | | | | | | header (pointed out by matthew@). Let only pflogd and tcpdump include pcap-int.h directly since they need it for privilege separation. "looks good" sthen feedback/ok deraadt matthew millert
* remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.okan2012-08-021-2/+1
| | | | ok guenther@
* Add a man page describing pcap grammargiovanni2012-07-163-7/+737
| | | | | help from lteo@, claudio, jmc@ ok jmc@
* tweak previous; ok sthen lteojmc2012-05-251-5/+7
|
* Import a number of core functions from libpcap-1.2.0 while preservinglteo2012-05-258-114/+1050
| | | | | | | | | | | | | | | | | | | | | | | | 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 icmptype and tcpflags support to the grammargiovanni2011-03-281-1/+25
| | | | ok claudio@ jsing@
* Fix typo in pflog header size computation. Fixes filtering with the newcanacar2010-10-091-2/+2
| | | | pflog headers. reported by jmc@, tested by jmc@ and sthen@, ok sthen@
* Make tcpdump of pflog interfaces work with 'net <net>' expression.krw2010-09-081-3/+3
| | | | | | My problem, canacar@'s fix. ok sthen@ canacar@
* Properly handle the size field in pflog link headercanacar2010-07-271-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@
* remove support for the old pflog format, replaced in 2003henning2010-06-262-36/+2
| | | | ok ryan theo & herr reyksminister
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-272-11/+2
| | | | | | | 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
* Zero out IPv6 mask before using it. This fixes expressions likebluhm2009-09-181-1/+2
| | | | | | 'net 2002::/16', which were previously non-deterministic based on the previous contents of memory. from upstream; ok claudio@
* various MLINK fixes from Alan R. S. Bueno;jmc2009-08-131-2/+3
|
* teach libpcap about scrub ruleshenning2009-04-061-2/+4
|
* Swap the code for a calling function and what it calls, so that the calledderaadt2008-06-151-14/+14
| | | | | function is in scope and a pointer is not returned via an int ok dtucker
* Import vlan support from upstream libpcap. This allows, eg, "tcpdump vla 3"dtucker2008-06-116-10/+118
| | | | to work on a vlan parent interface. ok mcbride@, "commit it" deraadt@
* fix format stringchl2007-11-061-2/+2
| | | | ok ray@ gilles@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-022-8/+8
|
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* remove extra \n in bpf_error() calls.reyk2007-01-021-10/+10
| | | | figured out by claudio@