diff options
| author | Brian Somers <brian@FreeBSD.org> | 1999-03-03 23:00:41 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1999-03-03 23:00:41 +0000 |
| commit | bc76350ef95ddf15ac3ddbd8a18fa3654f552130 (patch) | |
| tree | 8adba79ac0247aebf0ab1e4f0744910b85002499 /usr.sbin/ppp/ipcp.h | |
| parent | b9bb98b32b962e659f75b242819454440ab9b63c (diff) | |
Notes
Diffstat (limited to 'usr.sbin/ppp/ipcp.h')
| -rw-r--r-- | usr.sbin/ppp/ipcp.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/usr.sbin/ppp/ipcp.h b/usr.sbin/ppp/ipcp.h index 5681bd0da97e..b25c41d71402 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); |
