From 0cd5498ea51d681124d713130aef7a964b30ef25 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 30 Apr 2012 19:41:48 +0200 Subject: [PATCH] store a pointer to the active interface as part of the device route --- interface-ip.c | 1 + interface-ip.h | 1 + 2 files changed, 2 insertions(+) diff --git a/interface-ip.c b/interface-ip.c index 3494731..c0ba381 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -94,6 +94,7 @@ interface_ip_add_route(struct interface *iface, struct blob_attr *attr, bool v6) if ((cur = tb[ROUTE_MTU]) != NULL) route->mtu = blobmsg_get_u32(cur); + route->iface = ip->iface; vlist_add(&ip->route, &route->node, &route->flags); return; diff --git a/interface-ip.h b/interface-ip.h index 887c62c..28df093 100644 --- a/interface-ip.h +++ b/interface-ip.h @@ -36,6 +36,7 @@ struct device_addr { struct device_route { struct vlist_node node; + struct interface *iface; bool enabled; bool keep; -- 2.25.1