summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2023-03-15 08:43:52 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2023-03-15 08:43:52 +0000
commit12af848826dcdc39a4e517f09098764ee231286f (patch)
treea800d25d9f7ba3904295386e3b0059105e4a6eed /sbin
parent8da3374f0bdfdc05e103ce92887e6ff6dd3396f4 (diff)
For now pass AF_UNSPEC to printsource() to ensure that both inet and inet6
addrs are fetched from the kernel. This needs more cleanup.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/route/route.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index 267a9e350ba..49b675f10b4 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.263 2023/02/18 18:07:38 claudio Exp $ */
+/* $OpenBSD: route.c,v 1.264 2023/03/15 08:43:51 claudio Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -511,7 +511,7 @@ setsource(int argc, char **argv)
}
if (argc <= 0 && ifindex == 0)
- printsource(af, tableid);
+ printsource(AF_UNSPEC, tableid);
if (argc > 1 && ifindex == 0)
usage(NULL);