Up to [local] / src / usr.sbin / dhcrelay
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.24 / (download) - annotate - [select for diffs], Tue May 21 05:00:48 2024 UTC (2 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.23: +1 -7 lines
Diff to previous 1.23 (colored)
remove prototypes with no matching function and externs with no var partly checked by millert@
Revision 1.23 / (download) - annotate - [select for diffs], Wed Apr 5 14:40:56 2017 UTC (7 years, 2 months ago) by reyk
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
Changes since 1.22: +9 -9 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Tue Apr 4 15:50:29 2017 UTC (7 years, 2 months ago) by reyk
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)
constify pc_remote and pc_circuit OK rzalamena@
Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 16 09:17:20 2017 UTC (7 years, 2 months ago) by rzalamena
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.20: +8 -1 lines
Diff to previous 1.20 (colored)
Move the server struct to header file and make it compatible with IPv6. ok reyk@
Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 15 14:31:49 2017 UTC (7 years, 2 months ago) by rzalamena
Branch: MAIN
Changes since 1.19: +20 -3 lines
Diff to previous 1.19 (colored)
Improve the interface and addresses discovery code and prepare to receive IPv6 support. ok reyk@
Revision 1.19 / (download) - annotate - [select for diffs], Tue Mar 14 09:21:26 2017 UTC (7 years, 2 months ago) by rzalamena
Branch: MAIN
Changes since 1.18: +1 -5 lines
Diff to previous 1.18 (colored)
Remove some global variables that are not being used. ok gsoares@, jca@
Revision 1.18 / (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.17: +14 -3 lines
Diff to previous 1.17 (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.17 / (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.16: +29 -12 lines
Diff to previous 1.16 (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.16 / (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.15: +2 -2 lines
Diff to previous 1.15 (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.15 / (download) - annotate - [select for diffs], Wed Dec 7 13:19:18 2016 UTC (7 years, 6 months ago) by rzalamena
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)
Rename function discover_interfaces into get_interface and change its prototype to be more useful. ok reyk@
Revision 1.14 / (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_6_0_BASE,
OPENBSD_6_0,
OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.13: +1 -32 lines
Diff to previous 1.13 (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.13 / (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.12: +2 -2 lines
Diff to previous 1.12 (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.12 / (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_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7,
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.11: +3 -1 lines
Diff to previous 1.11 (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.11 / (download) - annotate - [select for diffs], Thu Jan 4 19:12:41 2007 UTC (17 years, 5 months ago) by stevesk
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6,
OPENBSD_4_5_BASE,
OPENBSD_4_5,
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.10: +1 -2 lines
Diff to previous 1.10 (colored)
<sys/un.h> not needed
Revision 1.10 / (download) - annotate - [select for diffs], Mon Dec 18 01:08:58 2006 UTC (17 years, 5 months ago) by stevesk
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)
warn() -> warning() to not overload with libc function; this has previously been done to dhclient and dhcpd
Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 29 22:36:43 2006 UTC (17 years, 6 months ago) by stevesk
Branch: MAIN
Changes since 1.8: +1 -2 lines
Diff to previous 1.8 (colored)
remove incorrect comment
Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 21 15:04:59 2006 UTC (17 years, 6 months ago) by stevesk
Branch: MAIN
Changes since 1.7: +1 -4 lines
Diff to previous 1.7 (colored)
remove unused #defines, no binary change; ok henning@
Revision 1.7 / (download) - annotate - [select for diffs], Tue Nov 21 04:39:08 2006 UTC (17 years, 6 months ago) by stevesk
Branch: MAIN
Changes since 1.6: +1 -3 lines
Diff to previous 1.6 (colored)
remove duplicate #include <unistd.h> (same change as dhclient)
Revision 1.6 / (download) - annotate - [select for diffs], Tue May 4 21:23:10 2004 UTC (20 years, 1 month ago) by deraadt
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.5: +1 -5 lines
Diff to previous 1.5 (colored)
remove unused stuff; henning ok
Revision 1.5 / (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.4: +6 -3 lines
Diff to previous 1.4 (colored)
get rid of the -p switch, use fixed values for server and client ports, rename port variables for clarity. ok henning@
Revision 1.4 / (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.3: +2 -107 lines
Diff to previous 1.3 (colored)
more shrinking; ok henning
Revision 1.3 / (download) - annotate - [select for diffs], Tue Apr 20 03:52:36 2004 UTC (20 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)
tree.h is not used at all
Revision 1.2 / (download) - annotate - [select for diffs], Tue Apr 13 01:22:30 2004 UTC (20 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)
chroot to /var/empty and drop privileges, theo ok
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