ndhc/src
Nicholas J. Kain 9f87bd8b30 udp_checksum(): Clamp the value of the UDP packet header length.
Without this change, it is possible for malicious UDP packets to
make the function read past the end of a buffer.

If this was ever a possibility in ndhc, the previous commit fixed
that issue, but there is no reason for udp_checksum() to have
such a subtle precondition to proper use.  This change also makes
it easier to audit correctness.
2015-01-06 07:07:08 -05:00
..
arp.c arp_min_close_fd() will always force the arp fd to be equal to -1, so 2014-05-10 21:13:24 -04:00
arp.h Parse config options with ragel and support a configuration file. 2014-04-14 15:06:31 -04:00
cfg.h Parse config options with ragel and support a configuration file. 2014-04-14 15:06:31 -04:00
cfg.rl Accept no command line arguments without error. 2014-04-21 12:04:13 -04:00
CMakeLists.txt Parse config options with ragel and support a configuration file. 2014-04-14 15:06:31 -04:00
dhcp.c udp_checksum(): Clamp the value of the UDP packet header length. 2015-01-06 07:07:08 -05:00
dhcp.h Just use raw sockets for listening to DHCP requests. A UDP SO_BROADCAST 2014-04-16 01:00:36 -04:00
duiaid.c Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
duiaid.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
ifchange.c Bound the subprocess lifetime using prctl(PR_SET_PDEATHSIG, ...). 2014-04-15 18:01:01 -04:00
ifchange.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
ifchd-parse.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
ifchd-parse.rl Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
ifchd.c PR_SET_PDEATHSIG is not fully reliable, so instead maintain a pair of 2014-04-15 23:19:24 -04:00
ifchd.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
ifset.c Make sure all sockets are set NONBLOCK so that writes do not block. 2014-08-19 11:09:59 -04:00
ifset.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
leasefile.c Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
leasefile.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
ndhc-defines.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
ndhc.8 Update the manual page. 2014-04-14 15:52:39 -04:00
ndhc.c Just use raw sockets for listening to DHCP requests. A UDP SO_BROADCAST 2014-04-16 01:00:36 -04:00
ndhc.h Just use raw sockets for listening to DHCP requests. A UDP SO_BROADCAST 2014-04-16 01:00:36 -04:00
netlink.c Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
netlink.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
nl.c Make sure all sockets are set NONBLOCK so that writes do not block. 2014-08-19 11:09:59 -04:00
nl.h Fix the return value for nlmsg_get_error(). 2014-06-13 22:35:57 -04:00
options.c get_dhcp_opt() didx argument should be passed as a reference rather 2014-05-10 21:38:45 -04:00
options.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
seccomp.c Permit sendmsg in the seccomp syscall whitelist for all daemons. 2014-04-15 14:57:07 -04:00
seccomp.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
sockd.c Make sure all sockets are set NONBLOCK so that writes do not block. 2014-08-19 11:09:59 -04:00
sockd.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
state.c Just use raw sockets for listening to DHCP requests. A UDP SO_BROADCAST 2014-04-16 01:00:36 -04:00
state.h Move source from ndhc/ to src/ since ifchd is no longer a separate program. 2014-04-06 16:57:06 -04:00
sys.c Make the signal handling code use safe_read() and unify ifchd and sockd 2014-04-15 20:55:13 -04:00
sys.h Make the signal handling code use safe_read() and unify ifchd and sockd 2014-04-15 20:55:13 -04:00