From 3dc35ad353017d12049a70d1b3c2c90f0aaade43 Mon Sep 17 00:00:00 2001 From: Vladislav Grishenko Date: Sun, 6 Sep 2020 03:09:01 +0500 Subject: auth/chap-secrets/dhcpv4: fix big-endian arch support --- accel-pppd/ctrl/ipoe/dhcpv4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/ctrl') diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c index cdb21a9d..8f536caf 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; -- cgit v1.2.3