summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-05 22:09:19 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>1999-12-05 22:09:19 +0000
commita0fafe87cf5a7ddb42411031500b200e5d0cc519 (patch)
tree8cd8ccb2c5110b128be3e64f260c697cd6670cc4 /sys
parent1b00c865dd3509cc1d570d65c716116a9906d7cd (diff)
Fix an INET6 dependency (niklas@)
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ipsp.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index eda5bd4b8f3..4c626c533ba 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.56 1999/12/04 23:20:21 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.57 1999/12/05 22:09:18 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -292,9 +292,15 @@ check_ipsec_policy(struct inpcb *inp, u_int32_t daddr)
DPRINTF(("ipsec: send SA request (%d), remote IPv4 address: %s, SA type: %d\n", i + 1, inet_ntoa4(dst->sen_ip_dst), sa_require));
break;
+#ifdef INET6
case SENT_IPSP6:
DPRINTF(("ipsec: send SA request (%d), remote IPv6 address: %s, SA type: %d\n", i + 1, inet6_ntoa4(dst->sen_ip6_dst), sa_require));
break;
+#endif /* INET6 */
+
+ default:
+ DPRINTF(("ipsec: unsupported protocol family %d, cannot notify kkey management\n", dst->sen_type));
+ return EPFNOSUPPORT;
}
/* Send notify */
@@ -1456,7 +1462,7 @@ inet_ntoa4(struct in_addr ina)
return (buf[i]);
}
-#if INET6
+#ifdef INET6
char *
inet6_ntoa4(struct in6_addr ina)
{