summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vxlan.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2018-09-08 17:35:20 +0200
committerGitHub <noreply@github.com>2018-09-08 17:35:20 +0200
commit18b43e554ea3c05afceb7fd59059e33bdb2e6e1f (patch)
tree9dab0e2e45a5de2d69633b4be877307461eb31b0 /zebra/zebra_vxlan.c
parentMerge pull request #2982 from donaldsharp/smux_h (diff)
parentzebra: Fix RB-Tree storage comparison function for v6 (diff)
downloadfrr-18b43e554ea3c05afceb7fd59059e33bdb2e6e1f.tar.xz
frr-18b43e554ea3c05afceb7fd59059e33bdb2e6e1f.zip
Merge pull request #2981 from donaldsharp/v6_vxlan_bug
zebra: Fix RB-Tree storage comparison function for v6
Diffstat (limited to 'zebra/zebra_vxlan.c')
-rw-r--r--zebra/zebra_vxlan.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c
index 33d0bcd23..eb1b07170 100644
--- a/zebra/zebra_vxlan.c
+++ b/zebra/zebra_vxlan.c
@@ -207,6 +207,9 @@ static int host_rb_entry_compare(const struct host_rb_entry *hle1,
return 1;
return 0;
+ } else if (hle1->p.family == AF_INET6) {
+ return memcmp(&hle1->p.u.prefix6, &hle2->p.u.prefix6,
+ IPV6_MAX_BYTELEN);
} else {
zlog_warn("%s: Unexpected family type: %d", __PRETTY_FUNCTION__,
hle1->p.family);