Page MenuHomeFreeBSD

D41330.id125615.diff
No OneTemporary

D41330.id125615.diff

Index: sys/netlink/route/rt.c
===================================================================
--- sys/netlink/route/rt.c
+++ sys/netlink/route/rt.c
@@ -753,9 +753,14 @@
struct ifaddr *ifa = ifaof_ifpforaddr(gw_sa, nh->nh_ifp);
if (ifa == NULL) {
- NL_LOG(LOG_DEBUG, "Unable to determine ifa, skipping");
- *perror = EINVAL;
- return (NULL);
+ /* Try link-level ifa. */
+ gw_sa = &nh->gw_sa;
+ ifa = ifaof_ifpforaddr(gw_sa, nh->nh_ifp);
+ if (ifa == NULL) {
+ NL_LOG(LOG_DEBUG, "Unable to determine ifa, skipping");
+ *perror = EINVAL;
+ return (NULL);
+ }
}
nhop_set_src(nh, ifa);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 9, 6:45 AM (19 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28549928
Default Alt Text
D41330.id125615.diff (628 B)

Event Timeline