EthernetNetIf Compatibility.
Dependents: XBeeWiFi_SPI_example
Fork of NetServicesSource by
Diff: lwip/netif/ppp/ppp.c
- Revision:
- 5:dd63a1e02b1b
- Parent:
- 4:fd826cad83c0
--- a/lwip/netif/ppp/ppp.c Fri Jul 09 14:46:47 2010 +0000 +++ b/lwip/netif/ppp/ppp.c Tue Jul 27 15:59:42 2010 +0000 @@ -249,7 +249,7 @@ /******************************/ u_long subnetMask; -static PPPControl pppControl[NUM_PPP]; /* The PPP interface control blocks. */ +static PPPControl pppControl[NUM_PPP] MEM_POSITION; /* The PPP interface control blocks. */ /* * PPP Data Link Layer "protocol" table. @@ -279,7 +279,7 @@ * Buffers for outgoing packets. This must be accessed only from the appropriate * PPP task so that it doesn't need to be protected to avoid collisions. */ -u_char outpacket_buf[NUM_PPP][PPP_MRU+PPP_HDRLEN]; +u_char outpacket_buf[NUM_PPP][PPP_MRU+PPP_HDRLEN] MEM_POSITION; /*****************************/ @@ -705,7 +705,7 @@ int c; for(b = nb; b != NULL; b = b->next) { - if((c = sio_write(pc->fd, (u8_t*)b->payload, b->len)) != b->len) { + if((c = sio_write(pc->fd, (u8_t *)b->payload, b->len)) != b->len) { PPPDEBUG(LOG_WARNING, ("PPP nPut: incomplete sio_write(fd:%"SZT_F", len:%d, c: 0x%"X8_F") c = %d\n", (size_t)pc->fd, b->len, c, c)); LINK_STATS_INC(link.err); @@ -1579,7 +1579,7 @@ return p; /* live dangerously */ } - for(b = p, pl = (u_char*)q->payload; b != NULL; b = b->next) { + for(b = p, pl = (u_char *) q->payload; b != NULL; b = b->next) { MEMCPY(pl, b->payload, b->len); pl += b->len; } @@ -1690,7 +1690,7 @@ if (protp->protocol == protocol && protp->enabled_flag) { PPPDEBUG(LOG_INFO, ("pppInput[%d]: %s len=%d\n", pd, protp->name, nb->len)); nb = pppSingleBuf(nb); - (*protp->input)(pd, (u_char*)nb->payload, nb->len); + (*protp->input)(pd, (u_char *)nb->payload, nb->len); PPPDEBUG(LOG_DETAIL, ("pppInput[%d]: packet processed\n", pd)); goto out; } @@ -1706,7 +1706,7 @@ protocol = htons(protocol); SMEMCPY(nb->payload, &protocol, sizeof(protocol)); #endif /* BYTE_ORDER == LITTLE_ENDIAN */ - lcp_sprotrej(pd, (u_char*)nb->payload, nb->len); + lcp_sprotrej(pd, (u_char *)nb->payload, nb->len); } break; }