X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fdemand.c;h=adb12b9a39da447e3cba4d91b73ceb540bf7b91c;hb=5b7a245572fb88a6c0aa2e753c74040105571ceb;hp=dc13ba75e0ae0cf5c882f17cc9c6845a55c5f535;hpb=8612e02b5b7a486edaa33d74f98c0c5664fb5302;p=ppp.git diff --git a/pppd/demand.c b/pppd/demand.c index dc13ba7..adb12b9 100644 --- a/pppd/demand.c +++ b/pppd/demand.c @@ -17,16 +17,13 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef lint -static char rcsid[] = "$Id: demand.c,v 1.6 1997/04/30 05:51:56 paulus Exp $"; -#endif +#define RCSID "$Id: demand.c,v 1.13 2000/04/15 01:27:11 masputra Exp $" #include #include #include #include #include -#include #include #include #include @@ -35,8 +32,8 @@ static char rcsid[] = "$Id: demand.c,v 1.6 1997/04/30 05:51:56 paulus Exp $"; #include #include #include -#include #ifdef PPP_FILTER +#include #include #include #endif @@ -46,6 +43,8 @@ static char rcsid[] = "$Id: demand.c,v 1.6 1997/04/30 05:51:56 paulus Exp $"; #include "ipcp.h" #include "lcp.h" +static const char rcsid[] = RCSID; + char *frame; int framelen; int framemax; @@ -217,7 +216,7 @@ loop_chars(p, n) if (!escape_flag && !flush_flag && framelen > 2 && fcs == PPP_GOODFCS) { framelen -= 2; - if (loop_frame(frame, framelen)) + if (loop_frame((unsigned char *)frame, framelen)) rv = 1; } framelen = 0; @@ -262,7 +261,7 @@ loop_frame(frame, len) { struct packet *pkt; - /* log_packet(frame, len, "from loop: ", LOG_DEBUG); */ + /* dbglog("from loop: %P", frame, len); */ if (len < PPP_HDRLEN) return 0; if ((PPP_PROTOCOL(frame) & 0x8000) != 0)