diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-11-14 14:33:03 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-14 19:00:13 +0100 |
commit | 71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60 (patch) | |
tree | fb2ff466c62e4e7485a11c59be7226ed3fd08f1e /ndp.h | |
parent | 0588163b1f981a3ef87a9a3fe155dc2f0e116e18 (diff) | |
download | passt-71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60.tar passt-71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60.tar.gz passt-71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60.tar.bz2 passt-71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60.tar.lz passt-71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60.tar.xz passt-71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60.tar.zst passt-71f228d04b5c68b1cf42d95e4e5bbb82af0a0e60.zip |
ndp: Remove redundant update to addr_seen
ndp() updates addr_seen or addr_ll_seen based on the source address of the
received packet. This is redundant since tap6_handler() has already
updated addr_seen for any type of packet, not just NDP.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'ndp.h')
-rw-r--r-- | ndp.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ #ifndef NDP_H #define NDP_H -int ndp(struct ctx *c, const struct icmp6hdr *ih, const struct in6_addr *saddr, - const struct pool *p); +int ndp(const struct ctx *c, const struct icmp6hdr *ih, + const struct in6_addr *saddr, const struct pool *p); #endif /* NDP_H */ |