Skip to contentSkip to conversation

ipmr_get_route()

DISCUSSION David S. Miller 1 participant 1 message Aug 31, 2004

Subsystems (2)
lore
Share & tools
lore

David S. Miller

author maintainer
#0 lore raw

This is very broken.

It gets called only by rt_fill_info() to get multicast routing information from ipmr.c, the skb it passes in is the rtnetlink message.

But look at what ipmr_get_route() actually does. If the cache entry cannot be found, it tries to build an IPV4 packet using this packet to resolve the missing cache entry!

I think we don't crash here only because most of the time the user has not specified an explicit input interface in the route lookup request, and therefore skb->dev is NULL when ipmr_get_route() takes a look at it.

Nevertheless things are seriously busted here. Any takers to fix this thing up? :-)