summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe
diff options
context:
space:
mode:
authorVladislav Grishenko <themiron@mail.ru>2020-09-06 03:09:01 +0500
committerVladislav Grishenko <themiron@mail.ru>2020-09-06 03:09:01 +0500
commit3dc35ad353017d12049a70d1b3c2c90f0aaade43 (patch)
tree69be547a95dd4822c0918de7b4d4bcb55dab5c32 /accel-pppd/ctrl/ipoe
parent2324bcd5ba12cf28f47357a8f03cd41b7c04c52b (diff)
downloadaccel-ppp-xebd-3dc35ad353017d12049a70d1b3c2c90f0aaade43.tar.gz
accel-ppp-xebd-3dc35ad353017d12049a70d1b3c2c90f0aaade43.zip
auth/chap-secrets/dhcpv4: fix big-endian arch support
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r--accel-pppd/ctrl/ipoe/dhcpv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c
index cdb21a9..8f536ca 100644
--- a/accel-pppd/ctrl/ipoe/dhcpv4.c
+++ b/accel-pppd/ctrl/ipoe/dhcpv4.c
@@ -574,7 +574,7 @@ static uint16_t ip_csum(uint16_t *buf, int len)
sum += *buf++;
if (len & 1) {
-#ifdef __LITTLE_ENDIAN
+#if __BYTE_ORDER == __LITTLE_ENDIAN
sum += *(uint8_t *)buf;
#else
sum += *(uint8_t *)buf << 8;