diff options
author | brian <brian@FreeBSD.org> | 2000-03-31 20:42:24 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-03-31 20:42:24 +0000 |
commit | c4adf041813242453feda501a5a910f8765cc730 (patch) | |
tree | c25e74e796b440aad2b33764c61ec2e5e8851f48 /usr.sbin/ppp/nat_cmd.c | |
parent | 67534b228aa77f848b6a5635e1164846fb38fc9e (diff) | |
download | FreeBSD-src-c4adf041813242453feda501a5a910f8765cc730.zip FreeBSD-src-c4adf041813242453feda501a5a910f8765cc730.tar.gz |
Use INADDR_NONE with PacketAliasSetTarget() if no args are given to
``nat target'', and suggest the use of ``nat target default'' as an
interesting possibility.
Diffstat (limited to 'usr.sbin/ppp/nat_cmd.c')
-rw-r--r-- | usr.sbin/ppp/nat_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c index f1d75ed..baa5350 100644 --- a/usr.sbin/ppp/nat_cmd.c +++ b/usr.sbin/ppp/nat_cmd.c @@ -345,7 +345,7 @@ nat_SetTarget(struct cmdargs const *arg) struct in_addr addr; if (arg->argc == arg->argn) { - addr.s_addr = INADDR_ANY; + addr.s_addr = INADDR_NONE; PacketAliasSetTarget(addr); return 0; } |