lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 03 Jun 2008 01:41:05 +0900 (JST)
From:	YOSHIFUJI Hideaki / 吉藤英明 
Subject: Re: [PATCH v2] IPv6: fix bug when specifying the non-exist
 outgoing interface

In article <> (at Mon, 02 Jun 2008 12:14:58 -0400), Brian Haley <> says:

> Shan Wei wrote:
> >   When specifying the outgoing interface with sendmsg, if the ipi6_addr is 
> > the unspecified address and the ipi6_ifindex is the not-exist interface, 
> > it should be fail and the errno should be set ENODEV.
> >   Actually, it does well(sendmsg returns on success ), because the kernel 
> > don't check the interface。
> This patch changes this code path to be different than most others that 
> completely ignore the device for the unspecified address - for example 
> inet6_bind() and rawv6_bind().  Those paths only care about the device 
> for a link-local address, so I don't think this patch is correct.

Semantics are different.  sin6_scope_id is valid ifindex only if
the scope is  link-local (Note: scope-id is scope-specific; 
for example, for "site-local" addresses, the values cannot be
directly mapped onto ifindex space).  On the other hand, ipi6_ifindex
is always effective even if the source address is global.

> In the current git tree, this :: address is going to turn-into ::1, so 
> the ifindex is irrelevant, the packet will be looped-back.  Older 
> kernels could transmit the packet on the wire using the default route. 
> Can you elaborate on the problem you were seeing?

Confused.  We are not talking about destination address but source
address, right?

To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists