| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
|
|
|
|
|
|
|
| |
libpcap-based program to process packets as soon as they arrive.
feedback from jasper@
ok jca@
(a long time ago)
|
|
|
|
|
|
| |
around for two releases, it should be safe to do so.
ok bluhm deraadt sthen tb yasuoka
|
|
|
|
|
|
| |
sthen@. to make remote upgrades without media less painful.
ok tb@
|
| |
|
| |
|
|
|
|
| |
ok deraadt@
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
public pcap_* functions that use errbuf. Mainline libpcap also uses
"errbuf" for pcap_create().
No object file change.
|
|
|
|
| |
file change.
|
|
|
|
|
|
|
| |
pcap_cleanup_bpf() to disable monitor mode on 802.11 devices.
feedback blambert@
ok deraadt@ mikeb@ millert@
|
| |
|
|
|
|
| |
ok deraadt@ florian@
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
pcap_setdirection() (which depends on the kernel-side bpf changes
committed yesterday); ok canacar@
|
|
|
|
|
|
| |
calloc instead of the proposed fix with additional parentheses.
ok moritz@ millert@
|
|
|
|
|
|
|
|
|
| |
- plug some memleaks
- avoid close(-1) when open() fails in pcap_open_live()
sent upstream where applicable
ok djm moritz
|
|
|
|
|
|
| |
cruft. help from deraadt@, mpf@, jmc@; ok mpf@a
nb. this will break tcpdump unless it updated too
|
|
|
|
| |
ok canacar@ mcbride@
|
| |
|
|
|
|
| |
tested by jose@, ok canacar@ and otto@
|
| |
|
|
|
|
| |
add support for INET6 (kame)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|