git: 32c3723f0655 - main - tests/netgraph: fix tests that depended on connect(in6addr_any)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Feb 2026 20:15:50 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=32c3723f06554db7d0da49c6f361c7b8f1a394c1
commit 32c3723f06554db7d0da49c6f361c7b8f1a394c1
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-02-02 20:15:26 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-02-02 20:15:26 +0000
tests/netgraph: fix tests that depended on connect(in6addr_any)
Fixes: 627e126dbb07b167b028380ef61bb45f10493938
---
tests/sys/netgraph/ksocket.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/sys/netgraph/ksocket.c b/tests/sys/netgraph/ksocket.c
index a60c17bd337f..356639256253 100644
--- a/tests/sys/netgraph/ksocket.c
+++ b/tests/sys/netgraph/ksocket.c
@@ -119,6 +119,8 @@ ATF_TC_BODY(udp6_connect, tc)
};
struct sockaddr_in6 sin6 = {
.sin6_family = AF_INET6,
+ .sin6_len = sizeof(sin6),
+ .sin6_addr = in6addr_loopback,
};
socklen_t slen = sizeof(sin6);
int cs, ds, us;
@@ -148,6 +150,7 @@ ATF_TC_BODY(udp6_bind, tc)
struct sockaddr_in6 sin6 = {
.sin6_family = AF_INET6,
.sin6_len = sizeof(sin6),
+ .sin6_addr = in6addr_loopback,
};
struct ng_mesg *rep;
int cs, ds, us;