Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ldpd create binding for connected routes on startup
details: https://anonhg.NetBSD.org/src/rev/3590a7831ec3
branches: trunk
changeset: 787947:3590a7831ec3
user: kefren <kefren%NetBSD.org@localhost>
date: Tue Jul 16 16:55:01 2013 +0000
description:
create binding for connected routes on startup
decay an warning message to debug only
diffstat:
usr.sbin/ldpd/mpls_routes.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e2047e42a141 -r 3590a7831ec3 usr.sbin/ldpd/mpls_routes.c
--- a/usr.sbin/ldpd/mpls_routes.c Tue Jul 16 14:22:13 2013 +0000
+++ b/usr.sbin/ldpd/mpls_routes.c Tue Jul 16 16:55:01 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpls_routes.c,v 1.15 2013/07/16 02:54:32 kefren Exp $ */
+/* $NetBSD: mpls_routes.c,v 1.16 2013/07/16 16:55:01 kefren Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -726,7 +726,7 @@
rg->m_rtm.rtm_type);
}
- warnp("[check_route] Route %s: %s / %s -> %s by PID:%d\n", oper, dest,
+ debugp("[check_route] Route %s: %s / %s -> %s by PID:%d\n", oper, dest,
pref, gate, rg->m_rtm.rtm_pid);
if(so_pref_allocated)
@@ -879,7 +879,7 @@
free(so_pref);
continue;
}
- if (so_gate->sa.sa_family == AF_INET)
+ if (so_gate == NULL || so_gate->sa.sa_family == AF_INET)
label_add(so_dst, so_pref, so_gate,
MPLS_LABEL_IMPLNULL, NULL, 0);
Home |
Main Index |
Thread Index |
Old Index