summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ipcp.h
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/ipcp.h
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/ipcp.h')
-rw-r--r--usr.sbin/ppp/ipcp.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.sbin/ppp/ipcp.h b/usr.sbin/ppp/ipcp.h
index 5681bd0..b25c41d 100644
--- a/usr.sbin/ppp/ipcp.h
+++ b/usr.sbin/ppp/ipcp.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ipcp.h,v 1.23 1999/01/28 01:56:32 brian Exp $
+ * $Id: ipcp.h,v 1.24 1999/02/26 21:28:12 brian Exp $
*
* TODO:
*/
@@ -34,14 +34,6 @@
#define TY_SECONDARY_NBNS 132
#define TY_ADJUST_NS 119 /* subtract from NS val for REJECT bit */
-#define addr2mask(addr) ( \
- IN_CLASSA(addr) ? \
- htonl(IN_CLASSA_NET) : \
- IN_CLASSB(addr) ? \
- htonl(IN_CLASSB_NET) : htonl(IN_CLASSC_NET) \
-)
-
-
struct sticky_route;
struct in_range {
@@ -124,3 +116,4 @@ extern int ipcp_UseHisaddr(struct bundle *, const char *, int);
extern int ipcp_vjset(struct cmdargs const *);
extern void ipcp_CleanInterface(struct ipcp *);
extern int ipcp_InterfaceUp(struct ipcp *);
+extern struct in_addr addr2mask(struct in_addr);
OpenPOWER on IntegriCloud