aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/dhcp.c
AgeCommit message (Collapse)Author
2018-12-21Fix UDP checksum verification error.Elliott Hughes
From RFC 768, if UDP packet checksum computation yields a result of zero, change it to hex 0xFFFF. The current udhcpc checksum verification would yield false positive for this case. A better way is to compute the checksum with the original checksum field and the result should be zero for good udp packet. Signed-off-by: Yangchun Fu <yangchun@google.com>
2016-08-04Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,Rob Landley
add xopenro() that takes one argument and understands "-" means stdin, and switch over lots of users.
2015-11-03dhcp leanup: remove flag_get() and flag_chk()Rob Landley
2015-01-01Switch a lot of strncpy() calls to xstrncpy().Rob Landley
2015-01-01strncpy(optptr, hname, strlen(hname)) is really just strcpy().Rob Landley
2014-07-20Isaac Dunham spotted that dhcp was also reimplementing daemon().Rob Landley
2014-05-31Introduce xfork() and make commands use it, and make some WEXITSTATUS() use ↵Rob Landley
WIFEXITED() and WTERMSIG()+127.
2014-05-21dhcp client had a segfault, when DHCP message contained 'pad' option.Ashwini Sharma
The parsing logic kept checking for other options beyond __pad__ option, without checking if it was __end__ option after that or not.
2013-11-02Merge toynet.h into toys.h: musl supports it and micromanaging uClibc config ↵Rob Landley
options isn't very interesting anymore.
2013-09-03Convert dhcp/dhcpd from utoa() to sprintf().Rob Landley
2013-08-14DHCP client and server, from Ashwini Sharma.Rob Landley