netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPV6_RTHDR with a type-0 routing header
@ 2009-08-20 11:11 Steinar H. Gunderson
  2009-08-20 11:29 ` Jens Rosenboom
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Steinar H. Gunderson @ 2009-08-20 11:11 UTC (permalink / raw)
  To: brian.haley, davem; +Cc: netdev, shanwei

Hi,

I've tried attaching a type-0 routing header to my IPv6 packets with
setsockopt(..., IPV6_RTHDR, ...), but the kernel just returns EINVAL.
looking at the source, it seems it simply refuses anything that's not type-2;
should that really be right? I found the following commit:

  http://kerneltrap.org/mailarchive/linux-netdev/2008/11/11/4064594

However, it only seems to change EPERM into EINVAL. I don't see any
reasonable explanation why it should not be simply success; in fact, RFC 3452
only seems to talk about using type-0 headers with this option.

Any ideas?

/* Steinar */
-- 
Homepage: http://www.sesse.net/

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

end of thread, other threads:[~2009-08-21  1:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-20 11:11 IPV6_RTHDR with a type-0 routing header Steinar H. Gunderson
2009-08-20 11:29 ` Jens Rosenboom
2009-08-20 11:29 ` Rémi Denis-Courmont
2009-08-20 12:18   ` Steinar H. Gunderson
2009-08-20 12:39     ` Steinar H. Gunderson
2009-08-20 12:53       ` Jens Rosenboom
2009-08-20 13:00         ` Steinar H. Gunderson
2009-08-20 13:11           ` Steinar H. Gunderson
2009-08-21  1:09 ` Shan Wei

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).