From 1ff3adef3aac62268f7684c31e14eef58590f63c Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Sun, 16 Mar 2014 21:16:06 -0400 Subject: [PATCH] Update documentation and remove unused ioctl.h header. --- README | 14 ++++++++------ ndhc/ifset.c | 1 - 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README b/README index 2af3339..aa4f168 100644 --- a/README +++ b/README @@ -160,8 +160,8 @@ esac exactly as I have outlined above. If you have not entirely followed my directions, the script will of course require modifications. -4o) If you encounter problems, I suggest running both ndhc in the foreground - and examining the printed output. +4o) If you encounter problems, I suggest running ndhc in the foreground and + examining the printed output. BEHAVIOR NOTES @@ -185,11 +185,10 @@ part of the official standard, so any implemention that may exist will be system-dependent. 2) ndhc configures network interfaces and routes. Interface and route -configuration is entirely non-portable, usually requiring calls to the -catch-all ioctl(), or even more unusual mechanisms like netlink sockets. +configuration is entirely non-portable. -3) ndhc uses netlink sockets extensively for both fetching data and hardware -link state change notification events. +3) ndhc uses netlink sockets extensively for fetching data, setting data, +and hardware link state change notification events. 4) ndhc uses the Berkeley Packet Filter / Linux Packet Filter interfaces to drop unwanted packets in kernelspace. This functionality is available on @@ -200,6 +199,9 @@ most modern unix systems, but it is not standard. 6) Numerous socket options are used, and the AF_PACKET socket family is used for raw sockets and ARP. These are largely Linux-specific, too. +7) ndhc can optionally use seccomp-filter to allow only a set of whitelisted +syscalls. This functionality is Linux-specific. + HISTORY ------- diff --git a/ndhc/ifset.c b/ndhc/ifset.c index 5562c9f..b38cff4 100644 --- a/ndhc/ifset.c +++ b/ndhc/ifset.c @@ -35,7 +35,6 @@ #include #include #include -#include #include #include #include