summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/icmp6-util.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-02-14 12:39:50 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-04-04 19:16:03 +0200
commit696eb2b8de980a2b79c1de7fbf12195936b00441 (patch)
tree5cc9998a35922cb4be6eaf71749ac924e2a45c93 /src/libsystemd-network/icmp6-util.c
parentcryptsetup-tokens: fix argument order mismatch in function (diff)
downloadsystemd-696eb2b8de980a2b79c1de7fbf12195936b00441.tar.xz
systemd-696eb2b8de980a2b79c1de7fbf12195936b00441.zip
sd-ndisc: add basic support of Neighbor Advertisement message
This adds basic support of receiving and parsing Neighbor Advertisement message defined in RFC 4861.
Diffstat (limited to 'src/libsystemd-network/icmp6-util.c')
-rw-r--r--src/libsystemd-network/icmp6-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsystemd-network/icmp6-util.c b/src/libsystemd-network/icmp6-util.c
index 7b3786e518..44c15f9044 100644
--- a/src/libsystemd-network/icmp6-util.c
+++ b/src/libsystemd-network/icmp6-util.c
@@ -42,6 +42,7 @@ int icmp6_bind(int ifindex, bool is_router) {
.ipv6mr_interface = ifindex,
};
ICMP6_FILTER_SETPASS(ND_ROUTER_ADVERT, &filter);
+ ICMP6_FILTER_SETPASS(ND_NEIGHBOR_ADVERT, &filter);
}
s = socket(AF_INET6, SOCK_RAW | SOCK_CLOEXEC | SOCK_NONBLOCK, IPPROTO_ICMPV6);