[Kea-users] perfdhcp error

Tomek Mrugalski tomasz at isc.org
Wed Sep 2 11:10:08 UTC 2015


On 02/09/15 12:51, Francis Dupont wrote:
> Note the if_nameindex() / getifaddrs() libraries have provision for
> very large or changing number of interfaces so we can copy the
> dynamic buffer code from them...
The original reason why I chose to use netlink rather than getifaddrs
was the desire for the libdhcp++ to be generic. netlink allows
configuration (adding, updating, deleting) addresses and prefixes.
This is a capability we hopefully one day will be using when we
implement DHCP client in Kea.

Another advantage to use netlink is the capability to get more detailed
information about addresses - their state (temporary, tentative) and
their lifetimes. In essence, netlink exports exact data from the kernel,
so we can take advantage of any network interface information the kernel
is aware of. For getifaddrs, we can only use whatever information was
provided there.

On the other hand, netlink has the obvious disadvantage to be
Linux-specific. Note that interface detection on BSDs is done using
getifaddrs().

Anyway, this was the rationale why I chose to use netlink, rather than
getifaddrs.

Tomek




More information about the Kea-users mailing list