]> Git Repo - linux.git/commit
gre: fix hard header destination address checking
authorTimo Teräs <[email protected]>
Wed, 3 Mar 2010 04:01:13 +0000 (04:01 +0000)
committerDavid S. Miller <[email protected]>
Thu, 4 Mar 2010 08:53:52 +0000 (00:53 -0800)
commit6d55cb91a0020ac0d78edcad61efd6c8cf5785a3
tree9aabbb2dac62f2e3ddcb8347da94df76f8976da7
parentc839d30a41dd92eb32d7fcfa2b4e99042fc64bf2
gre: fix hard header destination address checking

ipgre_header() can be called with zero daddr when the gre device is
configured as multipoint tunnel and still has the NOARP flag set (which is
typically cleared by the userspace arp daemon).  If the NOARP packets are
not dropped, ipgre_tunnel_xmit() will take rt->rt_gateway (= NBMA IP) and
use that for route look up (and may lead to bogus xfrm acquires).

The multicast address check is removed as sending to multicast group should
be ok.  In fact, if gre device has a multicast address as destination
ipgre_header is always called with multicast address.

Signed-off-by: Timo Teras <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipv4/ip_gre.c
This page took 0.05819 seconds and 4 git commands to generate.