From: claudio Date: Wed, 14 Feb 2024 07:56:23 +0000 (+0000) Subject: Adjust test after the change to struct bgpd_addr. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b6321a455f43362ae3427519f72a93368ccd66f4;p=openbsd Adjust test after the change to struct bgpd_addr. Noticed by anton@ --- diff --git a/regress/usr.sbin/bgpd/unittests/rde_trie_test.c b/regress/usr.sbin/bgpd/unittests/rde_trie_test.c index 7ace072167c..6c742fa2f98 100644 --- a/regress/usr.sbin/bgpd/unittests/rde_trie_test.c +++ b/regress/usr.sbin/bgpd/unittests/rde_trie_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_trie_test.c,v 1.13 2022/02/07 09:31:21 claudio Exp $ */ +/* $OpenBSD: rde_trie_test.c,v 1.14 2024/02/14 07:56:23 claudio Exp $ */ /* * Copyright (c) 2018 Claudio Jeker @@ -100,10 +100,10 @@ print_prefix(struct bgpd_addr *p) static char buf[48]; if (p->aid == AID_INET) { - if (inet_ntop(AF_INET, &p->ba, buf, sizeof(buf)) == NULL) + if (inet_ntop(AF_INET, &p->v4, buf, sizeof(buf)) == NULL) return "?"; } else if (p->aid == AID_INET6) { - if (inet_ntop(AF_INET6, &p->ba, buf, sizeof(buf)) == NULL) + if (inet_ntop(AF_INET6, &p->v6, buf, sizeof(buf)) == NULL) return "?"; } else { return "???";