Skip to contentSkip to conversation

discriminate inet6 addresses per namespace

PATCH David Miller 1 participant 1 message Jan 11, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

David Miller

author maintainer
#1 lore raw

From: Daniel Lezcano <[email protected]>
Date: Thu, 10 Jan 2008 19:02:40 +0100

Quoted 8 lines

The inet6_addr_lst hash table contains the configured addresses for the ipv6 protocol on the system.

With the network namespace, we have 2 solutions:
* make this hash table per namespace
* keep a global hash table and discard addresses not belonging to the network namespace

Quoted 7 lines

This patchset use the second method. It will use less memory, but can be a less efficient in case of a lot of containers.

The code is changed to have the network namespace parameter for the different functions, if we change our mind during an intense usage of the network namespace, the switch to a hash table per namespace is really easy to do and will not change the new api again.

All 5 patches applied, thanks.