Sun Sep 1 14:13:46 2019 UTC ()
Pull up following revision(s) (requested by roy in ticket #150):

	sbin/route/route.c: revision 1.162

route(8): show addrs for RTM_MISS


(martin)
diff -r1.160.2.1 -r1.160.2.2 src/sbin/route/route.c

cvs diff -r1.160.2.1 -r1.160.2.2 src/sbin/route/route.c (expand / switch to unified diff)

--- src/sbin/route/route.c 2019/08/26 13:37:26 1.160.2.1
+++ src/sbin/route/route.c 2019/09/01 14:13:46 1.160.2.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: route.c,v 1.160.2.1 2019/08/26 13:37:26 martin Exp $ */ 1/* $NetBSD: route.c,v 1.160.2.2 2019/09/01 14:13:46 martin Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1983, 1989, 1991, 1993 4 * Copyright (c) 1983, 1989, 1991, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -29,27 +29,27 @@ @@ -29,27 +29,27 @@
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 */ 30 */
31 31
32#include <sys/cdefs.h> 32#include <sys/cdefs.h>
33#ifndef lint 33#ifndef lint
34__COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\ 34__COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1991, 1993\
35 The Regents of the University of California. All rights reserved."); 35 The Regents of the University of California. All rights reserved.");
36#endif /* not lint */ 36#endif /* not lint */
37 37
38#ifndef lint 38#ifndef lint
39#if 0 39#if 0
40static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95"; 40static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
41#else 41#else
42__RCSID("$NetBSD: route.c,v 1.160.2.1 2019/08/26 13:37:26 martin Exp $"); 42__RCSID("$NetBSD: route.c,v 1.160.2.2 2019/09/01 14:13:46 martin Exp $");
43#endif 43#endif
44#endif /* not lint */ 44#endif /* not lint */
45 45
46#include <sys/param.h> 46#include <sys/param.h>
47#include <sys/file.h> 47#include <sys/file.h>
48#include <sys/socket.h> 48#include <sys/socket.h>
49#include <sys/ioctl.h> 49#include <sys/ioctl.h>
50#include <sys/sysctl.h> 50#include <sys/sysctl.h>
51 51
52#include <net/if.h> 52#include <net/if.h>
53#include <net/route.h> 53#include <net/route.h>
54#include <net/if_dl.h> 54#include <net/if_dl.h>
55#include <net80211/ieee80211_netbsd.h> 55#include <net80211/ieee80211_netbsd.h>
@@ -1453,26 +1453,27 @@ print_rtmsg(struct rt_msghdr *rtm, int m @@ -1453,26 +1453,27 @@ print_rtmsg(struct rt_msghdr *rtm, int m
1453 case IFAN_DEPARTURE: 1453 case IFAN_DEPARTURE:
1454 printf("departure"); 1454 printf("departure");
1455 break; 1455 break;
1456 default: 1456 default:
1457 printf("#%d", ifan->ifan_what); 1457 printf("#%d", ifan->ifan_what);
1458 break; 1458 break;
1459 } 1459 }
1460 printf("\n"); 1460 printf("\n");
1461 break; 1461 break;
1462 case RTM_ADD: 1462 case RTM_ADD:
1463 case RTM_CHANGE: 1463 case RTM_CHANGE:
1464 case RTM_DELETE: 1464 case RTM_DELETE:
1465 case RTM_GET: 1465 case RTM_GET:
 1466 case RTM_MISS:
1466 (void)printf("pid %d, seq %d, errno %d, flags: ", 1467 (void)printf("pid %d, seq %d, errno %d, flags: ",
1467 rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno); 1468 rtm->rtm_pid, rtm->rtm_seq, rtm->rtm_errno);
1468 bprintf(stdout, rtm->rtm_flags, routeflags); 1469 bprintf(stdout, rtm->rtm_flags, routeflags);
1469 pmsg_common(rtm); 1470 pmsg_common(rtm);
1470 break; 1471 break;
1471 } 1472 }
1472} 1473}
1473 1474
1474#ifndef SMALL 1475#ifndef SMALL
1475static int 1476static int
1476print_getmsg(struct rt_msghdr *rtm, int msglen, struct sou *soup) 1477print_getmsg(struct rt_msghdr *rtm, int msglen, struct sou *soup)
1477{ 1478{
1478 struct sockaddr *dst = NULL, *gate = NULL, *mask = NULL, *ifa = NULL, *mpls = NULL; 1479 struct sockaddr *dst = NULL, *gate = NULL, *mask = NULL, *ifa = NULL, *mpls = NULL;