diff options
author | brian <brian@FreeBSD.org> | 1999-03-03 23:00:41 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-03-03 23:00:41 +0000 |
commit | 090ad2bf4c94438daa0372159eebfe7cede5c3b5 (patch) | |
tree | 844af9dbfeafc71352cd0026187c546add484c2d /usr.sbin/ppp/command.c | |
parent | fb974f8ed94734f43dfc82e27445b482593a491d (diff) | |
download | FreeBSD-src-090ad2bf4c94438daa0372159eebfe7cede5c3b5.zip FreeBSD-src-090ad2bf4c94438daa0372159eebfe7cede5c3b5.tar.gz |
Correct some ntohl/htonl bogons in the netmask handling.
This was pretty harmless as netmasks on a POINTOPOINT
interface are pretty much ignored, but it looked funny.
Mention the configured netmask in ``show ipcp''.
Describe in more detail what a proxy arp entry is.
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 1f9f1b4..47d66ec 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.183 1999/02/25 20:05:54 brian Exp $ + * $Id: command.c,v 1.184 1999/02/26 21:28:07 brian Exp $ * */ #include <sys/param.h> @@ -141,7 +141,7 @@ #define NEG_DNS 52 const char Version[] = "2.11"; -const char VersionDate[] = "$Date: 1999/02/25 20:05:54 $"; +const char VersionDate[] = "$Date: 1999/02/26 21:28:07 $"; static int ShowCommand(struct cmdargs const *); static int TerminalCommand(struct cmdargs const *); @@ -1295,7 +1295,7 @@ SetInterfaceAddr(struct cmdargs const *arg) if (arg->argc > arg->argn+1) { hisaddr = arg->argv[arg->argn+1]; if (arg->argc > arg->argn+2) { - ipcp->cfg.netmask = GetIpAddr(arg->argv[arg->argn+2]); + ipcp->ifmask = ipcp->cfg.netmask = GetIpAddr(arg->argv[arg->argn+2]); if (arg->argc > arg->argn+3) { ipcp->cfg.TriggerAddress = GetIpAddr(arg->argv[arg->argn+3]); ipcp->cfg.HaveTriggerAddress = 1; |