On Fri, 2006-07-04 at 08:06 -0600, Mark Butler wrote:

> In IPv4, how is this information supposed to be communicated? The
> possibilities I can see are:
> 
> 1. Assuming link local based on SO_BINDTODEVICE.
> 2. Adding a new field to sockaddr_in in a backward compatible manner
> 3. Defining a new RTAX_xxxx route attribute 
> 
> Is there something I missed?

We already have a scope bitmap to define link local in netlink.
Look at include/linux/rtnetlink::struct ifaddrmsg::ifa_scope.

It should be a matter of setting that when adding the IP address from
user space. iproute ip can already do it; so cutnpaste some of that code
in your user space program.

cheers,
jamal


-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to