Module Name: src
Committed By: kefren
Date: Tue Jul 16 16:55:01 UTC 2013
Modified Files:
src/usr.sbin/ldpd: mpls_routes.c
Log Message:
create binding for connected routes on startup
decay an warning message to debug only
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/ldpd/mpls_routes.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/ldpd/mpls_routes.c
diff -u src/usr.sbin/ldpd/mpls_routes.c:1.15 src/usr.sbin/ldpd/mpls_routes.c:1.16
--- src/usr.sbin/ldpd/mpls_routes.c:1.15 Tue Jul 16 02:54:32 2013
+++ src/usr.sbin/ldpd/mpls_routes.c Tue Jul 16 16:55:01 2013
@@ -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 @@ check_route(struct rt_msg * rg, uint rle
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 @@ bind_current_routes()
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);