Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/route be consistent in what to leave outside of SMALL
details: https://anonhg.NetBSD.org/src/rev/478c0f6c7e48
branches: trunk
changeset: 758445:478c0f6c7e48
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Nov 04 23:37:27 2010 +0000
description:
be consistent in what to leave outside of SMALL
diffstat:
sbin/route/route.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (41 lines):
diff -r 9c26d07da72f -r 478c0f6c7e48 sbin/route/route.c
--- a/sbin/route/route.c Thu Nov 04 23:36:10 2010 +0000
+++ b/sbin/route/route.c Thu Nov 04 23:37:27 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.122 2010/11/04 23:36:10 pooka Exp $ */
+/* $NetBSD: route.c,v 1.123 2010/11/04 23:37:27 pooka Exp $ */
/*
* Copyright (c) 1983, 1989, 1991, 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)route.c 8.6 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: route.c,v 1.122 2010/11/04 23:36:10 pooka Exp $");
+__RCSID("$NetBSD: route.c,v 1.123 2010/11/04 23:37:27 pooka Exp $");
#endif
#endif /* not lint */
@@ -1173,10 +1173,12 @@
su = &soup->so_ifa;
su->sa.sa_family = af;
break;
+#ifndef SMALL
case RTA_TAG:
su = &soup->so_mpls;
afamily = AF_MPLS;
break;
+#endif
default:
su = NULL;
usage("Internal Error");
@@ -1516,7 +1518,9 @@
NEXTADDR(RTA_GENMASK, soup->so_genmask);
NEXTADDR(RTA_IFP, soup->so_ifp);
NEXTADDR(RTA_IFA, soup->so_ifa);
+#ifndef SMALL
NEXTADDR(RTA_TAG, soup->so_mpls);
+#endif
rtm.rtm_msglen = l = cp - (char *)&m_rtmsg;
if (verbose && ! shortoutput) {
if (rtm_addrs)
Home |
Main Index |
Thread Index |
Old Index