mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-01 04:12:07 +00:00
Applied patch #7264 (PPP protocols are rejected incorrectly on big endian architectures)
This commit is contained in:
parent
d73262a0e5
commit
229137cad1
@ -229,6 +229,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2010-08-01: Simon Goldschmidt (patch by Greg Renda)
|
||||||
|
* ppp.c: Applied patch #7264 (PPP protocols are rejected incorrectly on big
|
||||||
|
endian architectures)
|
||||||
|
|
||||||
2010-07-28: Simon Goldschmidt
|
2010-07-28: Simon Goldschmidt
|
||||||
* api_lib.c, api_msg.c, sockets.c, mib2.c: Fixed compilation with TCP or UDP
|
* api_lib.c, api_msg.c, sockets.c, mib2.c: Fixed compilation with TCP or UDP
|
||||||
disabled.
|
disabled.
|
||||||
|
@ -1704,8 +1704,8 @@ pppInput(void *arg)
|
|||||||
}
|
}
|
||||||
#if BYTE_ORDER == LITTLE_ENDIAN
|
#if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
protocol = htons(protocol);
|
protocol = htons(protocol);
|
||||||
SMEMCPY(nb->payload, &protocol, sizeof(protocol));
|
|
||||||
#endif /* BYTE_ORDER == LITTLE_ENDIAN */
|
#endif /* BYTE_ORDER == LITTLE_ENDIAN */
|
||||||
|
SMEMCPY(nb->payload, &protocol, sizeof(protocol));
|
||||||
lcp_sprotrej(pd, nb->payload, nb->len);
|
lcp_sprotrej(pd, nb->payload, nb->len);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user