diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-12-14 10:17:29 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-12-14 10:17:29 +0000 |
commit | 1ab553d24519e0dfba8905c63f981e6757231552 (patch) | |
tree | b50c2061406d11c5e3a5dc13a468c68357f64a4b /sbin/isakmpd/conf.c | |
parent | 7bd191da600d6d33c1d70abf3d41c55537ed9646 (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/conf.c')
-rw-r--r-- | sbin/isakmpd/conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/conf.c b/sbin/isakmpd/conf.c index 0eaa1e9ed01..eb3f504837d 100644 --- a/sbin/isakmpd/conf.c +++ b/sbin/isakmpd/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.73 2004/08/08 19:11:06 deraadt Exp $ */ +/* $OpenBSD: conf.c,v 1.74 2004/12/14 10:17:28 mcbride Exp $ */ /* $EOM: conf.c,v 1.48 2000/12/04 02:04:29 angelos Exp $ */ /* @@ -648,7 +648,7 @@ conf_get_address(char *section, char *tag) if (!value) return 0; - if (text2sockaddr(value, 0, &sa) == -1) + if (text2sockaddr(value, 0, &sa, 0, 0) == -1) return 0; return sa; } |