diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-17 21:31:09 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-10-19 19:14:43 +0200 |
commit | 27fa33984bd6276942459a4c68abd15d04a9333e (patch) | |
tree | 223e43ebd4d4c95f303fa63d62bfe25825d8c937 /ripngd | |
parent | Merge pull request #3203 from opensourcerouting/buildfoo-20181015 (diff) | |
download | frr-27fa33984bd6276942459a4c68abd15d04a9333e.tar.xz frr-27fa33984bd6276942459a4c68abd15d04a9333e.zip |
*: Fixup to use proper list_cmp functions
We had a variety of issues with sorted list compare functions.
This commit identifies and fixes these issues.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ripngd')
-rw-r--r-- | ripngd/ripng_peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ripngd/ripng_peer.c b/ripngd/ripng_peer.c index 2f7589848..6b2a18353 100644 --- a/ripngd/ripng_peer.c +++ b/ripngd/ripng_peer.c @@ -180,7 +180,7 @@ void ripng_peer_display(struct vty *vty) static int ripng_peer_list_cmp(struct ripng_peer *p1, struct ripng_peer *p2) { - return addr6_cmp(&p1->addr, &p2->addr) > 0; + return memcmp(&p1->addr, &p2->addr, sizeof(struct in6_addr)); } void ripng_peer_init() |