From 229137cad103025f7bdbc68e6db6f5fc2d216142 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 1 Aug 2010 11:15:48 +0000 Subject: [PATCH] Applied patch #7264 (PPP protocols are rejected incorrectly on big endian architectures) --- CHANGELOG | 4 ++++ src/netif/ppp/ppp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index f02ddd0d..3a0e1286 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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. diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 2a280ff0..fdf5e419 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -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;