artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78750f6
)
For now pass AF_UNSPEC to printsource() to ensure that both inet and inet6
author
claudio
<claudio@openbsd.org>
Wed, 15 Mar 2023 08:43:51 +0000
(08:43 +0000)
committer
claudio
<claudio@openbsd.org>
Wed, 15 Mar 2023 08:43:51 +0000
(08:43 +0000)
addrs are fetched from the kernel. This needs more cleanup.
sbin/route/route.c
patch
|
blob
|
history
diff --git
a/sbin/route/route.c
b/sbin/route/route.c
index
267a9e3
..
49b675f
100644
(file)
--- a/
sbin/route/route.c
+++ b/
sbin/route/route.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: route.c,v 1.26
3 2023/02/18 18:07:38
claudio Exp $ */
+/* $OpenBSD: route.c,v 1.26
4 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);