[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #13106] Add IPv6 scopes

From: Ivan Delamer
Subject: [lwip-devel] [task #13106] Add IPv6 scopes
Date: Wed, 18 Jan 2017 17:55:42 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #2, task #13106 (project lwip):

Great suggestions David. Can't believe it's been three years since I posted
this task.

Like you say, this is not straightforward. Otherwise it would have been done

I would lean towards solution 2, using macros as you suggest. If we decide to
change the implementation to something like 1 in the future, the macros should
ensure compatibility.

I've always seen scope IDs as integers, but I don't remember if this is RFC or
just general convention. I don't see any issues with adding an integer ID to
each netif. However, we should either:
1) add a get_id(netif_name) function to retrieve the ID based on the name
2) add a get_id(src_addr) function to retrieve ID based on an address
configured on the netif

1) and 2) would then have a macro that creates a LL destination address using
that integer ID

3) don't use and integer ID at all and have a macro create a LL dest address
embedding some private info. The macro could take either the netif name or a
src address.

Cheers, Ivan


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]