mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-18 20:10:53 +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
4fca628d36
commit
2c9b3b35d1
@ -76,6 +76,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ 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
|
2012-02-23: Simon Goldschmidt
|
||||||
* etharp.c: fixed bug #35595: Impossible to send broadcast without a gateway
|
* etharp.c: fixed bug #35595: Impossible to send broadcast without a gateway
|
||||||
(introduced when fixing bug# 33551)
|
(introduced when fixing bug# 33551)
|
||||||
|
@ -1272,7 +1272,7 @@ GetMask(u32_t addr)
|
|||||||
{
|
{
|
||||||
u32_t mask, nmask;
|
u32_t mask, nmask;
|
||||||
|
|
||||||
htonl(addr);
|
addr = htonl(addr);
|
||||||
if (IP_CLASSA(addr)) { /* determine network mask for address class */
|
if (IP_CLASSA(addr)) { /* determine network mask for address class */
|
||||||
nmask = IP_CLASSA_NET;
|
nmask = IP_CLASSA_NET;
|
||||||
} else if (IP_CLASSB(addr)) {
|
} else if (IP_CLASSB(addr)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user