]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4]: Prevent oops when printing martian source
authorOlaf Kirch <okir@suse.de>
Tue, 12 Jul 2005 04:01:42 +0000 (21:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jul 2005 04:01:42 +0000 (21:01 -0700)
commit62a7e4c852011f2b602a8a12615c9d6ff89f1fce
tree4c689dd688fbe7cbb4c3c61e2b246d5f48805aa6
parent3b7468051dc96ae4b197b3423fcdbbe758f5d146
[IPV4]: Prevent oops when printing martian source

In some cases, we may be generating packets with a source address that
qualifies as martian. This can happen when we're in the middle of setting
up the network, and netfilter decides to reject a packet with an RST.
The IPv4 routing code would try to print a warning and oops, because
locally generated packets do not have a valid skb->mac.raw pointer
at this point.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c