mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
patch by Bostjan Meglic: fixed bug #35809: PPP GetMask(): Compiler warning on big endian, possible bug on little endian system
This commit is contained in:
parent
6486c4b1d7
commit
21a1cf9c80
@ -62,6 +62,10 @@ HISTORY
|
||||
|
||||
++ Bugfixes:
|
||||
|
||||
2012-03-12: Simon Goldschmidt (patch by Bostjan Meglic)
|
||||
* ppp.c: fixed bug #35809: PPP GetMask(): Compiler warning on big endian,
|
||||
possible bug on little endian system
|
||||
|
||||
2012-02-23: Simon Goldschmidt
|
||||
* etharp.c: fixed bug #35595: Impossible to send broadcast without a gateway
|
||||
(introduced when fixing bug# 33551)
|
||||
|
@ -1272,7 +1272,7 @@ GetMask(u32_t addr)
|
||||
{
|
||||
u32_t mask, nmask;
|
||||
|
||||
htonl(addr);
|
||||
addr = htonl(addr);
|
||||
if (IP_CLASSA(addr)) { /* determine network mask for address class */
|
||||
nmask = IP_CLASSA_NET;
|
||||
} else if (IP_CLASSB(addr)) {
|
||||
|
Loading…
Reference in New Issue
Block a user