diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-02-14 07:56:24 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-02-14 07:56:24 +0000 |
commit | 9e002b1a5237d09fe22cf0cea5c9d658debaf490 (patch) | |
tree | 1f111d8763b9117f7ecaff9ef389734242f1cedf | |
parent | 244fa4c3b8d1a366cc7eed5156db8d73b5472bac (diff) |
Adjust test after the change to struct bgpd_addr.
Noticed by anton@
-rw-r--r-- | regress/usr.sbin/bgpd/unittests/rde_trie_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <claudio@openbsd.org> @@ -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 "???"; |