EthernetNetIf Compatibility.

Dependents:   XBeeWiFi_SPI_example

Fork of NetServicesSource by Donatien Garnier

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;