summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp
diff options
context:
space:
mode:
authorTobias Weingartner <weingart@cvs.openbsd.org>2001-07-03 03:06:58 +0000
committerTobias Weingartner <weingart@cvs.openbsd.org>2001-07-03 03:06:58 +0000
commit3094e7e08581b5ab32fc25f5521e25c7ef8bf569 (patch)
treeb1f6cb206bd5b516adda79c48a84c2c5c6cc0469 /usr.sbin/dhcp
parent2079bb7a9447be1943c3b140ad89a7068f206c43 (diff)
ENODEV -> EOPNOTSUPP to make this work. beck@ ok.
Diffstat (limited to 'usr.sbin/dhcp')
-rw-r--r--usr.sbin/dhcp/common/socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dhcp/common/socket.c b/usr.sbin/dhcp/common/socket.c
index 34f4ee48b93..a064e2f968b 100644
--- a/usr.sbin/dhcp/common/socket.c
+++ b/usr.sbin/dhcp/common/socket.c
@@ -84,15 +84,15 @@ int if_register_socket (info)
flag = IPSEC_LEVEL_BYPASS;
if (setsockopt (sock, IPPROTO_IP, IP_AUTH_LEVEL,
(char *)&flag, sizeof flag) == -1)
- if (errno != ENODEV)
+ if (errno != EOPNOTSUPP)
error ("Can't bypass auth IPsec on dhcp socket: %m");
if (setsockopt (sock, IPPROTO_IP, IP_ESP_TRANS_LEVEL,
(char *)&flag, sizeof flag) == -1)
- if (errno != ENODEV)
+ if (errno != EOPNOTSUPP)
error ("Can't bypass ESP transport on dhcp socket: %m");
if (setsockopt (sock, IPPROTO_IP, IP_ESP_NETWORK_LEVEL,
(char *)&flag, sizeof flag) == -1)
- if (errno != ENODEV)
+ if (errno != EOPNOTSUPP)
error ("Can't bypass ESP network on dhcp socket: %m");
return sock;