netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPv6 routing type - not at par with IPv4 one?
@ 2012-09-06 10:02 Markus Stenberg
  2012-09-06 10:35 ` Eric Dumazet
  0 siblings, 1 reply; 9+ messages in thread
From: Markus Stenberg @ 2012-09-06 10:02 UTC (permalink / raw)
  To: netdev

~ # ip route add throw 1.2.3.4
~ # ip -6 route add throw ::1.2.3.4
RTNETLINK answers: No such device
~ # ip route add blackhole 1.2.3.5
~ # ip -6 route add blackhole ::1.2.3.5
RTNETLINK answers: No such device
~ #

The reason for this is in net/ipv6/route.c - ipv6_route_add:

Eventually code winds up at this (1423 line in 3.5.3):

	err = -ENODEV;
	if (!dev)
		goto out;

and poof, ENODEV.

Is there some reason for this? Or should I write a patch? 
Or does someone else want to? Support for dev=NULL 
elsewhere in the code seems to be ok.

Based on quick googling I'm not the first one to have encountered this.

Cheers,

-Markus

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-01-24 10:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-06 10:02 IPv6 routing type - not at par with IPv4 one? Markus Stenberg
2012-09-06 10:35 ` Eric Dumazet
2012-09-06 10:54   ` Markus
2012-09-06 13:21     ` Nicolas Dichtel
2012-09-06 15:53       ` [PATCH net-next] ipv6: fix handling of throw routes Nicolas Dichtel
2012-09-06 13:58         ` Eric Dumazet
2012-09-07 18:18         ` David Miller
2012-09-10  7:15           ` Nicolas Dichtel
2013-01-24 10:11             ` Axel Neumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).