mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-13 11:47:00 +08:00
Applied patch #7264 (PPP protocols are rejected incorrectly on big endian architectures)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user