diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2020-09-26 13:51:12 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2020-09-26 13:51:12 +0100 |
commit | de155ae5b74aeae3327d8b60d1be203d02f765c1 (patch) | |
tree | 7d9e38c0c1d59cfe1ac983b37abef4ee9fb53dd2 | |
parent | a45ac8a5f4c893891a67a239753fe078528013e1 (diff) |
Amend a comment after the previous commit. [skip ci]
Restore and clarify the removed note, fix a couple unrelated issues.
-rw-r--r-- | pcap-linux.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 0444d574..a059b7b2 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -1395,7 +1395,7 @@ get_if_ioctl_socket(void) * * There isn't a socket type that's guaranteed to work. * - * AF_NETLINK will work *if* you have Netlink configured into th + * AF_NETLINK will work *if* you have Netlink configured into the * kernel (can it be configured out if you have any networking * support at all?) *and* if you're running a sufficiently recent * kernel, but not all the kernels we support are sufficiently @@ -1404,7 +1404,7 @@ get_if_ioctl_socket(void) * AF_UNIX will work *if* you have UNIX-domain sockets configured * into the kernel and *if* you're not on a system that doesn't * allow them - some SELinux systems don't allow you create them. - * Most systems probably have them configured in, but all systems + * Most systems probably have them configured in, but not all systems * have them configured in and allow them to be created. * * AF_INET will work *if* you have IPv4 configured into the kernel, @@ -1412,7 +1412,8 @@ get_if_ioctl_socket(void) * kernels without IPv4 support. * * AF_INET6 will work *if* you have IPv6 configured into the - * kernel. + * kernel, but if you don't have AF_INET, you might not have + * AF_INET6, either (that is, independently on its own grounds). * * AF_PACKET would work, except that some of these calls should * work even if you *don't* have capture permission (you should be |