[Bluez-devel] Re: IPv6 stateless address autoconf on bnep iface in down state

From: Gabor Fekete <hidden>
Date: 2005-06-01 19:24:11

Pete,

Actually, in IPv6 if I put an iface down then the IPv6 addresses and routes
belonging to it are automatically deleted.
In IPv4, the routes are deleted but the IP address stays. But, again,
I am talking about only IPv6 regarding my problem.

My problem is that on the bnep0 interface, although the IP settings (routes,
addresses) are deleted when ifdown-ing, it gets regenerated again when
the node receives an RA through bnep0 even though the interface is down.

Thanks,
Gabor Fekete
quoted
Hi,

I have a problem with bnepX interfaces.
I use stateless address autoconfiguration to set up the address
on a bnep0 interface. It works fine.
But when I "ip link set bnep0 down" then after seeing the routes
and ip addresses of bnep0 disappear, they appear again.
That is, ip addresses and routes are created for bnep interfaces
even if they are down.
After putting the interface down
o the global ip address appears in "ip -6 addr" for bnep0
o the link-local address does NOT appear
o the prefix routes appear for bnep0 in "ip -6 route"
o the default route for bnep0 appears in "ip -6 route"
This happens only for bnep interfaces. For wired and
WLAN interfaces, the addresses and routes disappear as they should
and never come back unless the interface is put "up" again.

Is this the normal behaviour for bnep interfaces or a bug?
This behavious causes a problem for example MIPL2 (MIPv6)
From memory I think this is normal behaviour of network interfaces in
general under Linux. I think if you have any sort of network interface
in a down state you can still ping the actual IP address on the
interface. I seem to remember this being  discussed on lkml. But then
my memory may not be correct too.

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help