chiark / gitweb /
sd-icmp6-nd: Parse ICMPv6 prefix information
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 20 Jan 2015 17:36:01 +0000 (19:36 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 27 Jan 2015 07:35:24 +0000 (09:35 +0200)
commitd77bde34cfcf91246a075fd47919294894bf6f8a
treec91088873f965392e2404335e97661c305fe1e0f
parent8d7f2c6a47db4bdb753b9d523d3bcb1105827991
sd-icmp6-nd: Parse ICMPv6 prefix information

Save each new onlink IPv6 prefix and attach an expiry timer to it.
If the prefixes overlap, take the shorter prefix and write a debug
message about the event. Once the prefix is resent in a Router
Advertisement, update the timer. Add a new event for the expiring
prefix.

Add two helper functions, one for returning a prefix length given a
Router Advertisement and the other for generic prefix matching given
an IPv6 prefix and address.
src/libsystemd-network/sd-icmp6-nd.c
src/systemd/sd-icmp6-nd.h