summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/bpf.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* explicitly use BPF_FILDROP_CAPTURE when configuring BIOCSFILDROPdlg2019-03-181-2/+3
* Simplify and clarify (i.e. shrink) code processingkrw2019-01-051-103/+51
* Rename ufdesc to udpfd to make the code slightly more intuitive.krw2018-12-271-2/+2
* Rename bfdesc to bpffd and packethandler() to bpffd_handler() to makekrw2018-12-271-12/+12
* ssize_t and unsigned int may be different sizes. Use ssize_t insteadkrw2018-12-081-5/+5
* Print the amount of bytes written, as intended, instead of -1 whenmpi2018-07-041-2/+2
* Make log messages more informative by using thekrw2017-09-201-4/+8
* Make send_packet() log entries more informative bykrw2017-09-201-8/+9
* Nuke a few extraneous blanks.krw2017-09-201-2/+2
* Make send_packet() usage consistent. i.e. don't exitkrw2017-09-191-4/+21
* Create global 'log_procname' and set it to '<ifname>' orkrw2017-09-171-3/+3
* Strive to rationalize fatal[x]() usage andkrw2017-09-141-13/+13
* Tweak some commentskrw2017-07-241-6/+3
* "ioctl() < 0" ==> "ioctl() == -1" as god and guenther@krw2017-07-141-10/+10
* Replace remaining "!var" expressions withkrw2017-07-141-2/+2
* Take some of the mystery out of who does what bykrw2017-07-101-36/+24
* Use a modern spacious idiom on all function local variablekrw2017-07-101-19/+19
* Be consistent. "return (e);" -> "return e;"krw2017-07-091-5/+5
* Always use uintNN_t instead of sometimes u_intNN_tkrw2017-07-081-4/+4
* assemble_eh_header() needs only to know about hw_addr.krw2017-07-071-2/+2
* sizeof(struct sockaddr_in) != sizeof(struct in_addr).krw2017-07-031-2/+2
* Make if_register_bpf() the same as the other if_register_*() functionskrw2017-06-271-5/+5
* Various KNF nits.krw2017-06-191-3/+3
* Start consolidating client_state into interface_info. Firstkrw2017-06-141-4/+4
* Rename 'packet' field to 'recv_packet' and 'bootrequest_packet'krw2017-06-131-14/+10
* Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has beennatano2017-04-191-3/+3
* Tweak parameters to decode_*, add a check or two, and thus gain most of thekrw2017-04-181-4/+5
* After 11 years of pondering about it I think that brookdavis@freebsd.orgkrw2017-04-181-3/+3
* Eliminate most strerror() invocations by using log_warn() and fatal()krw2017-02-121-18/+13
* Adjust lines that are too long.krw2017-02-121-2/+3
* Switch from 'legacy' errwarn.c to standard daemon logging functions.krw2017-02-121-16/+17
* Remove the 'client' global and make it per-ifp.mpi2016-08-311-1/+3
* Make the 'ifi' global local to dhclient.c and pass it as an argument tompi2016-08-231-9/+10
* Back out the dhclient BPF change. There are DHCP servers out there whichstsp2016-07-231-29/+2
* Narrow the BPF read filter rules so only packets sent to thekrw2016-07-191-2/+29
* Use /dev/bpf0 instead of /dev/bpf (without loop though), as suggested bynatano2016-05-081-3/+3
* Move to /dev/bpf; ok tb jmcnatano2016-05-031-21/+7
* Eliminate #include inside *.h files and include only needed headers inkrw2016-02-061-3/+19
* Correct comment to state that the BPF program is patched inkrw2014-12-031-2/+2
* Cleanup some struct interface_info fields. Make 'nomedia' a flag. Replacekrw2014-11-231-19/+15
* Use open(O_CLOEXEC) rather than open() + fcntl(FD_CLOEXEC). Inspiredkrw2014-11-081-3/+2
* Exhort user to recompile 'dhclient', not 'dhcpd', when bpf versions arekrw2014-11-081-2/+2
* Remove unnecessary netinet/in_systm.h include.lteo2014-10-251-2/+1
* Eliminate a couple of always-NULL parameters. Eliminate somekrw2014-04-171-10/+15
* Assemble outgoing packets using iovec to combine the (optional)krw2013-12-121-17/+47
* Having stopped pretending we handle anything but ethernet packets,krw2013-12-061-3/+3
* Shuffle function prototypes and extern declarations around tokrw2013-11-111-1/+3
* Bunch of comment/whitespace cleanup. Eliminate some misleading orkrw2013-05-021-25/+25
* send_packet() and writev() return ssize_t, not int. Use correctkrw2013-04-051-2/+3
* Don't rely on the packet buffer (client->packet) being preserved betweenkrw2013-02-141-5/+5