summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-03-03 23:00:41 +0000
committerbrian <brian@FreeBSD.org>1999-03-03 23:00:41 +0000
commit090ad2bf4c94438daa0372159eebfe7cede5c3b5 (patch)
tree844af9dbfeafc71352cd0026187c546add484c2d /usr.sbin/ppp/command.c
parentfb974f8ed94734f43dfc82e27445b482593a491d (diff)
downloadFreeBSD-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.c6
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;
OpenPOWER on IntegriCloud