Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld ServoInterfaceBoardExample1 4180_Lab4
Diff: lwip/netif/ppp/vj.c
- Revision:
- 4:fd826cad83c0
- Parent:
- 0:632c9925f013
- Child:
- 5:dd63a1e02b1b
--- a/lwip/netif/ppp/vj.c Fri Jun 18 10:38:57 2010 +0000
+++ b/lwip/netif/ppp/vj.c Fri Jul 09 14:46:47 2010 +0000
@@ -160,7 +160,7 @@
* `compressible' (i.e., ACK isn't set or some other control bit is
* set).
*/
- if ((IPH_OFFSET(ip) & htons(0x3fff)) || pb->tot_len < 40) {
+ if ((IPH_OFFSET(ip) & PP_HTONS(0x3fff)) || pb->tot_len < 40) {
return (TYPE_IP);
}
th = (struct tcp_hdr *)&((long *)ip)[hlen];
@@ -608,7 +608,7 @@
goto bad;
}
- bufptr = (u8_t*) n0->payload;
+ bufptr = (u8_t*)n0->payload;
for(q = np; q != NULL; q = q->next) {
MEMCPY(q->payload, bufptr, q->len);
bufptr += q->len;