summaryrefslogtreecommitdiffstats
path: root/usr.sbin/dhcrelay/dhcpd.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rework the packet.c code for decoding and assembling DHCP messages.reyk2017-04-051-9/+9
| | | | | | | | | | This code suffered from many years of incremental improvements, fix it to: - verify available buffer space in all cases and don't just trust the caller - have an API where you always pass the full buffer length and absolute offset - use consistent types for lengths and buffer offsets (int vs. size_t, ssize_t) - don't just ignore errors, return and fail when something is wrong OK rzalamena@
* constify pc_remote and pc_circuitreyk2017-04-041-3/+3
| | | | OK rzalamena@
* Move the server struct to header file and make it compatible with IPv6.rzalamena2017-03-161-1/+8
| | | | ok reyk@
* Improve the interface and addresses discovery code and prepare torzalamena2017-03-151-3/+20
| | | | | | receive IPv6 support. ok reyk@
* Remove some global variables that are not being used.rzalamena2017-03-141-5/+1
| | | | ok gsoares@, jca@
* Implement support for layer 2 relaying and add further Relay Agentrzalamena2016-12-121-3/+14
| | | | | | | Information (RFC 3046) options. While at there change the naming of the remote destination parameters: instead of "server" call it "destination". ok reyk@
* Clean up function prototypes: use a single struct to hold all addressrzalamena2016-12-081-12/+29
| | | | | | | | information instead of passing multiple different parameters. This also prepares the dhcrelay code to receive new features, like: IPv6, layer 2 relaying. ok jca@
* Simplify get_interfaces function, make it return NULL if we didn't findrzalamena2016-12-081-2/+2
| | | | | | | the interface and abort dhcrelay with a more friendly message when we don't have an address configured in the interface. ok jca@
* Rename function discover_interfaces into get_interface and change itsrzalamena2016-12-071-2/+3
| | | | | | prototype to be more useful. ok reyk@
* Eliminate #include inside *.h files and include only needed headers inkrw2016-02-071-32/+1
| | | | | | | each *.c file. Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
* Remove unused (a.k.a. always passed NULL) parameter 'data' fromsthen2016-02-021-2/+2
| | | | | | | | | decode_udp_ip_header() and the useless check of it. Part of original diff from pelikan about udp length errors. From dhcpd: bpf.c r1.9, dhcpd.h r1.46, packet.c r1.5 ok jca
* Add support for "DHCP-over-IPsec" by implementing RFC 3046 (DHCP Relayreyk2009-09-031-2/+4
| | | | | | | | | | Agent Information Option) and RFC 3456 (DHCP Configuration of IPsec Tunnel Mode). This allows to configure various IPsec clients dynamically via DHCP; dhcrelay needs to listen on enc0 and forward requests to a DHCP server that supports RFC 3046, like I recently did for dhcpd(8). ok krw@
* <sys/un.h> not neededstevesk2007-01-041-2/+1
|
* warn() -> warning() to not overload with libc function; this hasstevesk2006-12-181-2/+2
| | | | previously been done to dhclient and dhcpd
* remove incorrect commentstevesk2006-11-291-2/+1
|
* remove unused #defines, no binary change; ok henning@stevesk2006-11-211-4/+1
|
* remove duplicate #include <unistd.h> (same change as dhclient)stevesk2006-11-211-3/+1
|
* remove unused stuff; henning okderaadt2004-05-041-5/+1
|
* get rid of the -p switch, use fixed values for server and client ports,canacar2004-04-201-3/+6
| | | | | rename port variables for clarity. ok henning@
* more shrinking; ok henningderaadt2004-04-201-107/+2
|
* tree.h is not used at allderaadt2004-04-201-2/+1
|
* chroot to /var/empty and drop privileges, theo okhenning2004-04-131-1/+2
|
* initial cut at split out dhcrelay, whacked from usr.sbin/dhcp/ and sbin/dhclienthenning2004-04-121-0/+290