diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 8e8fae9f..0ba82f05 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -250,8 +250,6 @@ static void pppFreeCurrentInputPacket(PPPControlRx *pcrx); /******************************/ /*** PUBLIC DATA STRUCTURES ***/ /******************************/ -u_long subnetMask; - static PPPControl pppControl[NUM_PPP]; /* The PPP interface control blocks. */ /* @@ -447,8 +445,6 @@ pppInit(void) magicInit(); - subnetMask = PP_HTONL(0xffffff00UL); - for (i = 0; i < NUM_PPP; i++) { /* Initialize each protocol to the standard option set. */ for (j = 0; (protp = ppp_protocols[j]) != NULL; ++j) { @@ -1282,7 +1278,7 @@ GetMask(u32_t addr) } /* class D nets are disallowed by bad_ip_adrs */ - mask = subnetMask | htonl(nmask); + mask = PP_HTONL(0xffffff00UL) | htonl(nmask); /* XXX * Scan through the system's network interfaces.