| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | explicitly use BPF_FILDROP_CAPTURE when configuring BIOCSFILDROP | 2019-03-18 | 1 | -2/+3 | |
| | | | | | | | | BIOCSFILDROP used to just be a flag, ie, any non-zero value was treated the same, but i'm changing it so different values do different things. this way the programs should keep working even if i decide to change the values for these macros. | ||||
| * | Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has been | 2017-04-19 | 1 | -2/+2 | |
| | | | | | | | around for two releases, it should be safe to do so. ok bluhm deraadt sthen tb yasuoka | ||||
| * | Tweak parameters to decode_*, add a check or two, and thus gain most of the | 2017-04-18 | 1 | -5/+5 | |
| | | | | | | sanity improvements reyk@ recently put into dhcrelay to ensure no more than the captured packet is processed. | ||||
| * | After 11 years of pondering about it I think that brookdavis@freebsd.org | 2017-04-18 | 1 | -3/+3 | |
| | | | | | | | had it correct. Don't BPF_WORDALIGN() the value for the number of bytes read() into the buffer. This could theoretically cause the processing of 1 - 3 more bytes than were read. | ||||
| * | Eliminate pointless'%m' (a.k.a. hand rolled strerror()) by using fatal() and | 2017-02-13 | 1 | -13/+12 | |
| | | | | | log_warn(). Zap a couple of explicit 'syslog()' calls. | ||||
| * | Switch from old errwarn.c logging to shiny new log.[ch]. | 2017-02-13 | 1 | -14/+15 | |
| | | | | | ok benno@ | ||||
| * | Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...). | 2016-05-28 | 1 | -20/+7 | |
| | | | | | ok deraadt jca | ||||
| * | Eliminate #include inside *.h files and include only needed headers in | 2016-02-06 | 1 | -5/+19 | |
| | | | | | | | | each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@. | ||||
| * | Remove unnecessary netinet/in_systm.h include. | 2014-10-25 | 1 | -2/+1 | |
| | | | | | ok millert@ | ||||
| * | Add -u option to bind UDP port as a socket to answer DHCPINFORM from | 2014-07-11 | 1 | -1/+5 | |
| | | | | | | | | the clients on non ethernet interfaces (eg. tun(4) or pppx(4)). input krw ok krw | ||||
| * | send_packet() and writev() return ssize_t, not int. Use correct | 2013-04-05 | 1 | -2/+3 | |
| | | | | | type to store the returned value. From dhill. | ||||
| * | Remove unused (a.k.a. always passed NULL) parameter 'data' from | 2013-02-03 | 1 | -2/+2 | |
| | | | | | | decode_udp_ip_header() and the useless check of it. Part of original diff from pelikan about udp length errors. | ||||
| * | Just like dhclient(8), we use the bpf filter drop to prevent | 2009-12-14 | 1 | -1/+4 | |
| | | | | | | us from sending an icmp error along with the dhcp reply. OK henning@ | ||||
| * | When checking if a syscall like open(), ioctl() or writev() failed compare | 2008-09-15 | 1 | -11/+11 | |
| | | | | | directly against -1 and do not use a < 0 test. OK henning@ | ||||
| * | Fix erroneous use of '=' instead of '+' that caused infinite loops | 2005-07-29 | 1 | -7/+13 | |
| | | | | | | | | when skipping packets. Use BPF_WORDALIGN() to properly skip packets. From Brooks Davis at FreeBSD. ok deraadt@ henning@ | ||||
| * | avoid aliasing with libc functions; ok henning | 2004-09-16 | 1 | -2/+2 | |
| | | |||||
| * | remove things not used, spotted by lint mostly; ok henning | 2004-05-04 | 1 | -4/+4 | |
| | | |||||
| * | filter writes and lock bpf descriptor, ok henning@ | 2004-04-21 | 1 | -14/+58 | |
| | | |||||
| * | dhcpd actually does not listen on port 68 ... | 2004-04-15 | 1 | -2/+2 | |
| | | |||||
| * | may the whacking begin | 2004-04-13 | 1 | -0/+321 | |
