diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-15 17:57:55 +0100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-28 17:11:40 +0200 |
commit | 5ca555cf7808eac4d73ad7423d40484692f1fb81 (patch) | |
tree | 00f8957f6536925f84bf034f950cbf697a451fd3 /dhcpv6.c | |
parent | 5eb7604203c733ffd803636c9f8a1a25cec7851d (diff) | |
download | passt-5ca555cf7808eac4d73ad7423d40484692f1fb81.tar passt-5ca555cf7808eac4d73ad7423d40484692f1fb81.tar.gz passt-5ca555cf7808eac4d73ad7423d40484692f1fb81.tar.bz2 passt-5ca555cf7808eac4d73ad7423d40484692f1fb81.tar.lz passt-5ca555cf7808eac4d73ad7423d40484692f1fb81.tar.xz passt-5ca555cf7808eac4d73ad7423d40484692f1fb81.tar.zst passt-5ca555cf7808eac4d73ad7423d40484692f1fb81.zip |
dhcpv6, tap, tcp: Use IN6_ARE_ADDR_EQUAL instead of open-coded memcmp()
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'dhcpv6.c')
-rw-r--r-- | dhcpv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -354,7 +354,7 @@ ia_ta: req_addr = (struct in6_addr *)(ia_addr + 1); - if (memcmp(addr, req_addr, sizeof(*addr))) { + if (!IN6_ARE_ADDR_EQUAL(addr, req_addr)) { info("DHCPv6: requested address %s not on link", inet_ntop(AF_INET6, req_addr, buf, sizeof(buf))); |