diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-12-13 08:40:55 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-12-13 08:40:55 +0000 |
commit | e974f08e9b0519ecb035b6ed5b466a26b05c7231 (patch) | |
tree | d916844c02e9beb8eec67bfbdb4055bc916a4f68 /sbin/route/show.c | |
parent | e54b6b581c5d2925fee9e0b475822b139c49cc21 (diff) |
Print the correct netmask instead of /0 when flushing routes to networks.
Issue reported by jsing@, ok stsp@
Diffstat (limited to 'sbin/route/show.c')
-rw-r--r-- | sbin/route/show.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/route/show.c b/sbin/route/show.c index 73989889964..913baf6cdb6 100644 --- a/sbin/route/show.c +++ b/sbin/route/show.c @@ -1,4 +1,4 @@ -/* $OpenBSD: show.c,v 1.107 2016/09/05 14:23:38 claudio Exp $ */ +/* $OpenBSD: show.c,v 1.108 2016/12/13 08:40:54 mpi Exp $ */ /* $NetBSD: show.c,v 1.1 1996/11/15 18:01:41 gwr Exp $ */ /* @@ -100,7 +100,6 @@ int WID_DST(int); void pr_rthdr(int); void p_rtentry(struct rt_msghdr *); void pr_family(int); -void p_sockaddr(struct sockaddr *, struct sockaddr *, int, int); void p_sockaddr_mpls(struct sockaddr *, struct sockaddr *, int, int); void p_flags(int, char *); char *routename4(in_addr_t); @@ -224,7 +223,7 @@ pr_rthdr(int af) } } -static void +void get_rtaddrs(int addrs, struct sockaddr *sa, struct sockaddr **rti_info) { int i; |