X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=8251f480f0dc8874d9c0082fa945b30e63492882;hp=4d6c171bfdb30f3cf361f21e4e60843159043081;hb=179ee8410220e164904f9808b5dd0512db106ee3;hpb=061de3e2f4884fac89a10e5cb5e746f82622e55f diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 4d6c171..8251f48 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include @@ -44,7 +45,6 @@ #include #include "pppd.h" -#include "ppp.h" #include "fsm.h" #include "ipcp.h" @@ -457,7 +457,7 @@ int read_packet (unsigned char *buf) { int len; - len = read(fd, buf, MTU + DLLHEADERLEN); + len = read(fd, buf, PPP_MTU + PPP_HDRLEN); if (len < 0) { if (errno == EWOULDBLOCK) { #if 0 @@ -475,7 +475,7 @@ int read_packet (unsigned char *buf) * ppp_send_config - configure the transmit characteristics of * the ppp interface. */ -void ppp_send_config (int unit,int mtu,uint32 asyncmap,int pcomp,int accomp) +void ppp_send_config (int unit,int mtu,u_int32_t asyncmap,int pcomp,int accomp) { u_int x; struct ifreq ifr; @@ -527,7 +527,7 @@ ppp_set_xaccm(unit, accm) * ppp_recv_config - configure the receive-side characteristics of * the ppp interface. */ -void ppp_recv_config (int unit,int mru,uint32 asyncmap,int pcomp,int accomp) +void ppp_recv_config (int unit,int mru,u_int32_t asyncmap,int pcomp,int accomp) { u_int x; @@ -957,7 +957,7 @@ int cifdefaultroute (int unit, int gateway) * sifproxyarp - Make a proxy ARP entry for the peer. */ -int sifproxyarp (int unit, uint32 his_adr) +int sifproxyarp (int unit, u_int32_t his_adr) { struct arpreq arpreq; @@ -986,7 +986,7 @@ int sifproxyarp (int unit, uint32 his_adr) * cifproxyarp - Delete the proxy ARP entry for the peer. */ -int cifproxyarp (int unit, uint32 his_adr) +int cifproxyarp (int unit, u_int32_t his_adr) { struct arpreq arpreq; @@ -1006,11 +1006,11 @@ int cifproxyarp (int unit, uint32 his_adr) * the same subnet as ipaddr. */ -int get_ether_addr (uint32 ipaddr, struct sockaddr *hwaddr) +int get_ether_addr (u_int32_t ipaddr, struct sockaddr *hwaddr) { struct ifreq *ifr, *ifend, *ifp; int i; - uint32 ina, mask; + u_int32_t ina, mask; struct sockaddr_dl *dla; struct ifreq ifreq; struct ifconf ifc;