summaryrefslogtreecommitdiffstats
path: root/lib/libnetgraph/sock.c
diff options
context:
space:
mode:
authorneel <neel@FreeBSD.org>2013-01-04 19:28:32 +0000
committerneel <neel@FreeBSD.org>2013-01-04 19:28:32 +0000
commit38ad3ee53626ccab6f22009b0723f2fb7903ecc1 (patch)
tree9981bd6a02de01af545d4aff19c0afbef003cfe5 /lib/libnetgraph/sock.c
parent736fc919674c3c284d5611e7e9b572385c4dbc0e (diff)
parent661fe3468922dc71771a1f31a3562d73f41c4374 (diff)
downloadFreeBSD-src-38ad3ee53626ccab6f22009b0723f2fb7903ecc1.zip
FreeBSD-src-38ad3ee53626ccab6f22009b0723f2fb7903ecc1.tar.gz
IFC @ r244983.
Diffstat (limited to 'lib/libnetgraph/sock.c')
-rw-r--r--lib/libnetgraph/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libnetgraph/sock.c b/lib/libnetgraph/sock.c
index fca3900..5f9f563 100644
--- a/lib/libnetgraph/sock.c
+++ b/lib/libnetgraph/sock.c
@@ -71,10 +71,10 @@ NgMkSockNode(const char *name, int *csp, int *dsp)
name = NULL;
/* Create control socket; this also creates the netgraph node.
- If we get an EPROTONOSUPPORT then the socket node type is
+ If we get an EAFNOSUPPORT then the socket node type is
not loaded, so load it and try again. */
if ((cs = socket(AF_NETGRAPH, SOCK_DGRAM, NG_CONTROL)) < 0) {
- if (errno == EPROTONOSUPPORT) {
+ if (errno == EAFNOSUPPORT) {
if (kldload(NG_SOCKET_KLD) < 0) {
errnosv = errno;
if (_gNgDebugLevel >= 1)
OpenPOWER on IntegriCloud