diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2020-09-06 03:09:01 +0500 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2020-09-06 03:09:01 +0500 |
commit | 3dc35ad353017d12049a70d1b3c2c90f0aaade43 (patch) | |
tree | 69be547a95dd4822c0918de7b4d4bcb55dab5c32 /accel-pppd/ctrl | |
parent | 2324bcd5ba12cf28f47357a8f03cd41b7c04c52b (diff) | |
download | accel-ppp-3dc35ad353017d12049a70d1b3c2c90f0aaade43.tar.gz accel-ppp-3dc35ad353017d12049a70d1b3c2c90f0aaade43.zip |
auth/chap-secrets/dhcpv4: fix big-endian arch support
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/ipoe/dhcpv4.c | 2 |
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; |