mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
fixed bug #37665 ip_canforward operates on address in wrong byte order
This commit is contained in:
parent
b844129649
commit
ff3bf6d7f5
@ -80,6 +80,9 @@ HISTORY
|
|||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2013-01-15: Simon Goldschmidt
|
||||||
|
* ip4.c: fixed bug #37665 ip_canforward operates on address in wrong byte order
|
||||||
|
|
||||||
2013-01-15: Simon Goldschmidt
|
2013-01-15: Simon Goldschmidt
|
||||||
* pbuf.h: fixed bug #38097 pbuf_free_ooseq() warning
|
* pbuf.h: fixed bug #38097 pbuf_free_ooseq() warning
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ ip_route(ip_addr_t *dest)
|
|||||||
static int
|
static int
|
||||||
ip_canforward(struct pbuf *p)
|
ip_canforward(struct pbuf *p)
|
||||||
{
|
{
|
||||||
u32_t addr = ip4_addr_get_u32(ip_current_dest_addr());
|
u32_t addr = htonl(ip4_addr_get_u32(ip_current_dest_addr()));
|
||||||
|
|
||||||
if (p->flags & PBUF_FLAG_LLBCAST) {
|
if (p->flags & PBUF_FLAG_LLBCAST) {
|
||||||
/* don't route link-layer broadcasts */
|
/* don't route link-layer broadcasts */
|
||||||
|
Loading…
Reference in New Issue
Block a user