]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/icmp6-util.h
icmp6-util: Bind Router Advertisement socket
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Fri, 12 May 2017 13:48:35 +0000 (16:48 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 15 May 2017 11:49:50 +0000 (14:49 +0300)
commit6142bb37a594183bfc8989d598bc1913a30f7c03
treef6b22aa4ad3c600bc4b62cad3a953b01a426678b
parent204fb681f600ea9216579fc6e5a49b392cad61c7
icmp6-util: Bind Router Advertisement socket

Reuse and refactor the functionality already present for Router
Solicitations in order to create a socket for sending Router
Advertisements. Anticipate reception of incoming Router
Solicitations by setting the ICMPv6 filter accordingly. Also set
the unicast hop limit to 255 for ICMPv6 sockets as unicast Router
Advertisments are to be sent in response to Router Solicitations.

Update the Router Solicitation test case code with a function
definition in order to keep the test case working.
src/libsystemd-network/icmp6-util.c
src/libsystemd-network/icmp6-util.h
src/libsystemd-network/test-ndisc-rs.c