Up to [local] / src / usr.sbin / dhcrelay
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.19 / (download) - annotate - [select for diffs], Wed Apr 19 05:36:12 2017 UTC (7 years, 1 month ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0,
OPENBSD_6_9_BASE,
OPENBSD_6_9,
OPENBSD_6_8_BASE,
OPENBSD_6_8,
OPENBSD_6_7_BASE,
OPENBSD_6_7,
OPENBSD_6_6_BASE,
OPENBSD_6_6,
OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3,
OPENBSD_6_2_BASE,
OPENBSD_6_2,
HEAD
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)
Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has been around for two releases, it should be safe to do so. ok bluhm deraadt sthen tb yasuoka
Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 5 14:40:56 2017 UTC (7 years, 2 months ago) by reyk
Branch: MAIN
Changes since 1.17: +24 -17 lines
Diff to previous 1.17 (colored)
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@
Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 13 22:49:38 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.16: +11 -12 lines
Diff to previous 1.16 (colored)
Eliminate pointless'%m' (a.k.a. hand rolled strerror()) by using fatal() and log_warn(). Zap a couple of explicit 'syslog()' calls.
Revision 1.16 / (download) - annotate - [select for diffs], Mon Feb 13 22:05:35 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.15: +5 -3 lines
Diff to previous 1.15 (colored)
Adjust some long lines.
Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 13 19:15:39 2017 UTC (7 years, 3 months ago) by krw
Branch: MAIN
Changes since 1.14: +14 -13 lines
Diff to previous 1.14 (colored)
Switch from old errwarn.c logging to shiny new log.[ch]. ok benno@
Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 12 15:41:05 2016 UTC (7 years, 5 months ago) by rzalamena
Branch: MAIN
Changes since 1.13: +77 -5 lines
Diff to previous 1.13 (colored)
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@
Revision 1.13 / (download) - annotate - [select for diffs], Thu Dec 8 19:18:15 2016 UTC (7 years, 6 months ago) by rzalamena
Branch: MAIN
Changes since 1.12: +10 -11 lines
Diff to previous 1.12 (colored)
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@
Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 8 09:29:50 2016 UTC (7 years, 6 months ago) by rzalamena
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)
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@
Revision 1.11 / (download) - annotate - [select for diffs], Sat May 28 07:00:18 2016 UTC (8 years ago) by natano
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0
Changes since 1.10: +7 -20 lines
Diff to previous 1.10 (colored)
Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...). ok deraadt jca
Revision 1.10 / (download) - annotate - [select for diffs], Sun Feb 7 00:49:28 2016 UTC (8 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.9: +16 -6 lines
Diff to previous 1.9 (colored)
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@.
Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 2 23:15:15 2016 UTC (8 years, 4 months ago) by sthen
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)
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
Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 25 03:23:49 2014 UTC (9 years, 7 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.7: +1 -2 lines
Diff to previous 1.7 (colored)
Remove unnecessary netinet/in_systm.h include. ok millert@
Revision 1.7 / (download) - annotate - [select for diffs], Thu Sep 3 11:56:49 2009 UTC (14 years, 9 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6,
OPENBSD_5_5_BASE,
OPENBSD_5_5,
OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3,
OPENBSD_5_2_BASE,
OPENBSD_5_2,
OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8,
OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.6: +52 -3 lines
Diff to previous 1.6 (colored)
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@
Revision 1.6 / (download) - annotate - [select for diffs], Mon Sep 15 20:39:21 2008 UTC (15 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5
Changes since 1.5: +11 -11 lines
Diff to previous 1.5 (colored)
Sync with dhcpd. Do not use < 0 to check for failed syscalls use == -1 instead. OK henning@
Revision 1.5 / (download) - annotate - [select for diffs], Mon Dec 18 01:08:58 2006 UTC (17 years, 5 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4,
OPENBSD_4_3_BASE,
OPENBSD_4_3,
OPENBSD_4_2_BASE,
OPENBSD_4_2,
OPENBSD_4_1_BASE,
OPENBSD_4_1
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)
warn() -> warning() to not overload with libc function; this has previously been done to dhclient and dhcpd
Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 20 21:05:14 2004 UTC (20 years, 1 month ago) by canacar
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE,
OPENBSD_4_0,
OPENBSD_3_9_BASE,
OPENBSD_3_9,
OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.3: +50 -2 lines
Diff to previous 1.3 (colored)
set write filter and lock the bpf descriptor after configuration. ok henning@
Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 20 20:56:47 2004 UTC (20 years, 1 month ago) by canacar
Branch: MAIN
Changes since 1.2: +3 -13 lines
Diff to previous 1.2 (colored)
get rid of the -p switch, use fixed values for server and client ports, rename port variables for clarity. ok henning@
Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 20 04:19:00 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)
more shrinking; ok henning
Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 12 21:10:28 2004 UTC (20 years, 2 months ago) by henning
Branch: MAIN
initial cut at split out dhcrelay, whacked from usr.sbin/dhcp/ and sbin/dhclient