#
ce7279d8 |
| 21-May-2024 |
jsg <jsg@openbsd.org> |
remove prototypes with no matching function and externs with no var partly checked by millert@
|
#
22c60a6b |
| 05-Apr-2017 |
reyk <reyk@openbsd.org> |
Rework the packet.c code for decoding and assembling DHCP messages.
This code suffered from many years of incremental improvements, fix it to: - verify available buffer space in all cases and don't
Rework the packet.c code for decoding and assembling DHCP messages.
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@
show more ...
|
#
b2b4b45f |
| 04-Apr-2017 |
reyk <reyk@openbsd.org> |
constify pc_remote and pc_circuit
OK rzalamena@
|
#
f51f0ea7 |
| 16-Mar-2017 |
rzalamena <rzalamena@openbsd.org> |
Move the server struct to header file and make it compatible with IPv6.
ok reyk@
|
#
962cae8e |
| 15-Mar-2017 |
rzalamena <rzalamena@openbsd.org> |
Improve the interface and addresses discovery code and prepare to receive IPv6 support.
ok reyk@
|
#
c28564c4 |
| 14-Mar-2017 |
rzalamena <rzalamena@openbsd.org> |
Remove some global variables that are not being used.
ok gsoares@, jca@
|
#
e4b49721 |
| 12-Dec-2016 |
rzalamena <rzalamena@openbsd.org> |
Implement support for layer 2 relaying and add further Relay Agent Information (RFC 3046) options. While at there change the naming of the remote destination parameters: instead of "server" call it "
Implement support for layer 2 relaying and add further Relay Agent Information (RFC 3046) options. While at there change the naming of the remote destination parameters: instead of "server" call it "destination".
ok reyk@
show more ...
|
#
fa3d4f89 |
| 08-Dec-2016 |
rzalamena <rzalamena@openbsd.org> |
Clean up function prototypes: use a single struct to hold all address information instead of passing multiple different parameters. This also prepares the dhcrelay code to receive new features, like:
Clean up function prototypes: use a single struct to hold all address information instead of passing multiple different parameters. This also prepares the dhcrelay code to receive new features, like: IPv6, layer 2 relaying.
ok jca@
show more ...
|
#
a29cd94b |
| 08-Dec-2016 |
rzalamena <rzalamena@openbsd.org> |
Simplify get_interfaces function, make it return NULL if we didn't find the interface and abort dhcrelay with a more friendly message when we don't have an address configured in the interface.
ok jc
Simplify get_interfaces function, make it return NULL if we didn't find the interface and abort dhcrelay with a more friendly message when we don't have an address configured in the interface.
ok jca@
show more ...
|
#
ffc715d7 |
| 07-Dec-2016 |
rzalamena <rzalamena@openbsd.org> |
Rename function discover_interfaces into get_interface and change its prototype to be more useful.
ok reyk@
|
#
f70ef60c |
| 07-Feb-2016 |
krw <krw@openbsd.org> |
Eliminate #include inside *.h files and include only needed headers in each *.c file.
Inspired by mention of header silliness by Edgar Pettijohn and mmcc@ on tech@.
|
#
23d823c3 |
| 02-Feb-2016 |
sthen <sthen@openbsd.org> |
Remove unused (a.k.a. always passed NULL) parameter 'data' from 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
Remove unused (a.k.a. always passed NULL) parameter 'data' from 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
show more ...
|
#
4be048dc |
| 03-Sep-2009 |
reyk <reyk@openbsd.org> |
Add support for "DHCP-over-IPsec" by implementing RFC 3046 (DHCP Relay Agent Information Option) and RFC 3456 (DHCP Configuration of IPsec Tunnel Mode). This allows to configure various IPsec client
Add support for "DHCP-over-IPsec" by implementing RFC 3046 (DHCP Relay 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@
show more ...
|
#
9aec18f8 |
| 04-Jan-2007 |
stevesk <stevesk@openbsd.org> |
<sys/un.h> not needed
|
#
32f01720 |
| 18-Dec-2006 |
stevesk <stevesk@openbsd.org> |
warn() -> warning() to not overload with libc function; this has previously been done to dhclient and dhcpd
|
#
c4b8abc3 |
| 29-Nov-2006 |
stevesk <stevesk@openbsd.org> |
remove incorrect comment
|
#
831cc890 |
| 21-Nov-2006 |
stevesk <stevesk@openbsd.org> |
remove unused #defines, no binary change; ok henning@
|
#
0517f8ef |
| 21-Nov-2006 |
stevesk <stevesk@openbsd.org> |
remove duplicate #include <unistd.h> (same change as dhclient)
|
#
7877d30c |
| 04-May-2004 |
deraadt <deraadt@openbsd.org> |
remove unused stuff; henning ok
|
#
65520a46 |
| 20-Apr-2004 |
canacar <canacar@openbsd.org> |
get rid of the -p switch, use fixed values for server and client ports, rename port variables for clarity. ok henning@
|
#
cb13f214 |
| 20-Apr-2004 |
deraadt <deraadt@openbsd.org> |
more shrinking; ok henning
|
#
150ad76c |
| 20-Apr-2004 |
deraadt <deraadt@openbsd.org> |
tree.h is not used at all
|
#
a0ba4c4a |
| 13-Apr-2004 |
henning <henning@openbsd.org> |
chroot to /var/empty and drop privileges, theo ok
|
#
48be18b4 |
| 12-Apr-2004 |
henning <henning@openbsd.org> |
initial cut at split out dhcrelay, whacked from usr.sbin/dhcp/ and sbin/dhclient
|