Add support for ignore_routes_with_linkdown attribute.
Signed-off-by: Zhang Shengju <[email protected]>
---
ip/ipnetconf.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/ip/ipnetconf.c b/ip/ipnetconf.c
index eca6eee..6fec818 100644
--- a/ip/ipnetconf.c
+++ b/ip/ipnetconf.c
@@ -119,6 +119,10 @@ int print_netconf(const struct sockaddr_nl *who, struct
rtnl_ctrl_data *ctrl,
fprintf(fp, "proxy_neigh %s ",
*(int *)RTA_DATA(tb[NETCONFA_PROXY_NEIGH])?"on":"off");
+ if (tb[NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN])
+ fprintf(fp, "ignore_routes_with_linkdown %s ",
+ *(int
*)RTA_DATA(tb[NETCONFA_IGNORE_ROUTES_WITH_LINKDOWN])?"on":"off");
+
fprintf(fp, "\n");
fflush(fp);
return 0;
--
1.8.3.1