diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2017-05-12 15:48:35 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2017-05-15 13:49:50 +0200 |
commit | 6142bb37a594183bfc8989d598bc1913a30f7c03 (patch) | |
tree | f6b22aa4ad3c600bc4b62cad3a953b01a426678b /src/libsystemd-network/icmp6-util.h | |
parent | sd-radv: Implement Router Advertisement timeout handling (diff) | |
download | systemd-6142bb37a594183bfc8989d598bc1913a30f7c03.tar.xz systemd-6142bb37a594183bfc8989d598bc1913a30f7c03.zip |
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.
Diffstat (limited to 'src/libsystemd-network/icmp6-util.h')
-rw-r--r-- | src/libsystemd-network/icmp6-util.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-network/icmp6-util.h b/src/libsystemd-network/icmp6-util.h index 2b4dbc76ce..5cf63cb2c5 100644 --- a/src/libsystemd-network/icmp6-util.h +++ b/src/libsystemd-network/icmp6-util.h @@ -22,4 +22,5 @@ #include <net/ethernet.h> int icmp6_bind_router_solicitation(int index); +int icmp6_bind_router_advertisement(int index); int icmp6_send_router_solicitation(int s, const struct ether_addr *ether_addr); |