Applied patch #7264 (PPP protocols are rejected incorrectly on big endian architectures)

This commit is contained in:
goldsimon 2010-08-01 11:15:48 +00:00
parent d73262a0e5
commit 229137cad1
2 changed files with 5 additions and 1 deletions

View File

@ -229,6 +229,10 @@ HISTORY
++ 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
* api_lib.c, api_msg.c, sockets.c, mib2.c: Fixed compilation with TCP or UDP
disabled.

View File

@ -1704,8 +1704,8 @@ pppInput(void *arg)
}
#if BYTE_ORDER == LITTLE_ENDIAN
protocol = htons(protocol);
SMEMCPY(nb->payload, &protocol, sizeof(protocol));
#endif /* BYTE_ORDER == LITTLE_ENDIAN */
SMEMCPY(nb->payload, &protocol, sizeof(protocol));
lcp_sprotrej(pd, nb->payload, nb->len);
}
break;