Nicholas J. Kain
|
ddf9daf8e4
|
Do more boundary and sanity checking when adding dhcp options.
Simplify parameter list for ifchd_cmd().
|
2011-03-30 15:57:01 -04:00 |
|
Nicholas J. Kain
|
0e62d46f8b
|
Explicitly track length in get_end_option_idx().
Rename get_options() to get_option_data() and end_options() to
get_end_option_idx().
|
2011-03-30 12:04:38 -04:00 |
|
Nicholas J. Kain
|
1437f520ca
|
Rewrite get_option(): new version fixes at least one bug, and is much easier
to understand and verify as correct. It also returns the length of the
extracted option.
|
2011-03-30 09:35:17 -04:00 |
|
Nicholas J. Kain
|
13d9119f3a
|
Remove dhcpd.h.
|
2011-03-30 05:55:12 -04:00 |
|
Nicholas J. Kain
|
d96cb14711
|
Fix stale declaration of arp_check().
|
2010-12-24 10:40:46 -05:00 |
|
Nicholas J. Kain
|
c0b699ba88
|
Rename script.[ch] to ifchange.[ch].
|
2010-12-24 10:12:41 -05:00 |
|
Nicholas J. Kain
|
08f7db1637
|
Rename clientpacket.c to dhcpmsg.c.
|
2010-12-24 10:01:12 -05:00 |
|
Nicholas J. Kain
|
59a0661eb9
|
Move change_listen_mode to packet.c.
|
2010-12-24 09:41:52 -05:00 |
|
Nicholas J. Kain
|
adcc4bdd3d
|
Move dhcp packet reply code to packet.c.
|
2010-12-24 08:55:59 -05:00 |
|
Nicholas J. Kain
|
fb56a9cb2b
|
Make sure to #include <stddef.h> when using offsetof().
|
2010-11-16 17:41:46 -05:00 |
|
Nicholas J. Kain
|
9dce1a0378
|
Make sure our assigned address is unique on our segment by using arp.
|
2010-11-15 20:06:50 -05:00 |
|
Nicholas J. Kain
|
4ce4323d00
|
Replace sizeof(struct dhcpMessage) with DHCP_SIZE.
|
2010-11-14 02:01:17 -05:00 |
|
Nicholas J. Kain
|
9421da3157
|
Don't zero-pad kernel-packet sent dhcp packets.
|
2010-11-14 01:56:54 -05:00 |
|
Nicholas J. Kain
|
f8d856cc0a
|
Don't zero-pad sent raw dhcp packets and clean up packet.c.
|
2010-11-14 01:53:23 -05:00 |
|
Nicholas J. Kain
|
8401d175a1
|
Remove a Win98 DHCP client bug workaround from get_packet().
|
2010-11-14 01:12:32 -05:00 |
|
Nicholas J. Kain
|
6a3b004eee
|
Specialize init_header() to only handle client packets, move it to
clientpacket.c, and make it static.
|
2010-11-14 00:52:32 -05:00 |
|
Nicholas J. Kain
|
693c9256e4
|
Add safe_read() to ncmlib and use it in ndhc.
|
2010-11-13 08:37:33 -05:00 |
|
Nicholas J. Kain
|
a43e69c7ae
|
Factor out safe_write() into ncmlib and use it in ndhc as well.
|
2010-11-13 08:18:23 -05:00 |
|
Nicholas J. Kain
|
35c4c773cd
|
Remove unnecessary casts from setsockopt().
Prevent access to initialized memory in raw_socket()'s bind() call by
using memset().
|
2010-11-13 06:13:10 -05:00 |
|
Nicholas J. Kain
|
f59ccfb5b0
|
In sendto() and write(), make sure all pointer arithmetic is in byte
sized units.
|
2010-11-13 05:59:15 -05:00 |
|
Nicholas J. Kain
|
5f55dbc3ff
|
Fix previous commit -- handle filling empty options properly.
Clean up pidfile defaults and help message.
Clean up the write/sendto fixes to be a bit more readable.
|
2010-11-12 19:43:16 -05:00 |
|
Nicholas J. Kain
|
eb6009a5ee
|
Make write() and sendto() properly handle short writes and errors in ndhc.
Make ndhc write a pidfile.
Clean up defines.h and split out ifchd and ndhc specifics.
|
2010-11-12 18:44:49 -05:00 |
|
Nicholas J. Kain
|
f4a00f3826
|
Whitespace and indentation normalization.
|
2010-11-12 14:33:17 -05:00 |
|
Nicholas J. Kain
|
b882669f85
|
Convert to using shared ncmlib.
|
2010-11-12 05:42:07 -05:00 |
|
Nicholas J. Kain
|
7a09ba2cf7
|
Initial commit.
|
2010-11-12 04:02:18 -05:00 |
|