summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/virtual.c
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-12-14 10:17:29 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2004-12-14 10:17:29 +0000
commit1ab553d24519e0dfba8905c63f981e6757231552 (patch)
treeb50c2061406d11c5e3a5dc13a468c68357f64a4b /sbin/isakmpd/virtual.c
parent7bd191da600d6d33c1d70abf3d41c55537ed9646 (diff)
Allow the Address, Network, or Netmask values of the <IPsec-ID> to be
specified with an interface name (in which case the first address is used) or the keyword 'default' (in which case the address is selected based on the default route). eg: [roadwarrior-ip] ID-type= IPV4_ADDR Address= default ok ho@ hshoexer@
Diffstat (limited to 'sbin/isakmpd/virtual.c')
-rw-r--r--sbin/isakmpd/virtual.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/virtual.c b/sbin/isakmpd/virtual.c
index d6132fe7932..dbf5635dbea 100644
--- a/sbin/isakmpd/virtual.c
+++ b/sbin/isakmpd/virtual.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: virtual.c,v 1.9 2004/09/20 21:36:50 hshoexer Exp $ */
+/* $OpenBSD: virtual.c,v 1.10 2004/12/14 10:17:28 mcbride Exp $ */
/*
* Copyright (c) 2004 Håkan Olsson. All rights reserved.
@@ -457,7 +457,7 @@ virtual_bind_if(char *ifname, struct sockaddr *if_addr, void *arg)
if (listen_on) {
for (address = TAILQ_FIRST(&listen_on->fields); address;
address = TAILQ_NEXT(address, link)) {
- if (text2sockaddr(address->field, 0, &addr)) {
+ if (text2sockaddr(address->field, 0, &addr, 0, 0)) {
log_print("virtual_bind_if: "
"invalid address %s in \"Listen-on\"",
address->field);