* question regarding (AF_INET6, SOCK_RAW, IPPROTO_RAW) sockets
@ 2008-03-12 16:34 Octavian Purdila
2008-03-12 18:06 ` Rémi Denis-Courmont
0 siblings, 1 reply; 3+ messages in thread
From: Octavian Purdila @ 2008-03-12 16:34 UTC (permalink / raw)
To: netdev
Hi,
I've noticed that when using IPv6 raw sockets with IPPROTO_RAW protocol and
IPV6_PKTINFO set, we are not allow to specify a source address that it is not
configured in the system.
Disabling ipv6_chk_addr in datagram_send_ctl for IPv6 raw sockets seems to fix
our problem. Is this approach the right one?
Thanks,
tavi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question regarding (AF_INET6, SOCK_RAW, IPPROTO_RAW) sockets
2008-03-12 16:34 question regarding (AF_INET6, SOCK_RAW, IPPROTO_RAW) sockets Octavian Purdila
@ 2008-03-12 18:06 ` Rémi Denis-Courmont
2008-03-12 23:02 ` Octavian Purdila
0 siblings, 1 reply; 3+ messages in thread
From: Rémi Denis-Courmont @ 2008-03-12 18:06 UTC (permalink / raw)
To: Octavian Purdila; +Cc: netdev
Le Wednesday 12 March 2008 18:34:29 Octavian Purdila, vous avez écrit :
> Hi,
>
> I've noticed that when using IPv6 raw sockets with IPPROTO_RAW protocol and
> IPV6_PKTINFO set, we are not allow to specify a source address that it is
> not configured in the system.
>
> Disabling ipv6_chk_addr in datagram_send_ctl for IPv6 raw sockets seems to
> fix our problem. Is this approach the right one?
I am a bit confused here. Why would you use IPV6_PKTINFO with a network-layer
raw socket? You have to write the IPv6 header anyway, so what useful
additional infos would you the ancillary data contain?
--
Rémi Denis-Courmont
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: question regarding (AF_INET6, SOCK_RAW, IPPROTO_RAW) sockets
2008-03-12 18:06 ` Rémi Denis-Courmont
@ 2008-03-12 23:02 ` Octavian Purdila
0 siblings, 0 replies; 3+ messages in thread
From: Octavian Purdila @ 2008-03-12 23:02 UTC (permalink / raw)
To: Rémi Denis-Courmont; +Cc: netdev
On Wednesday 12 March 2008, Rémi Denis-Courmont wrote:
>
> I am a bit confused here. Why would you use IPV6_PKTINFO with a
> network-layer raw socket? You have to write the IPv6 header anyway, so what
> useful additional infos would you the ancillary data contain?
Hi Rémi,
You are right. For some reason (the IPV4 case / man 7 raw) I though that
IPV6_PKTINFO is implied when using IPPROTO_RAW but I see now that it is not
required.
Thanks,
tavi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-12 23:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-12 16:34 question regarding (AF_INET6, SOCK_RAW, IPPROTO_RAW) sockets Octavian Purdila
2008-03-12 18:06 ` Rémi Denis-Courmont
2008-03-12 23:02 ` Octavian Purdila
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).