From: Stephen Hemminger Date: Wed, 18 Dec 2013 06:26:56 +0000 (-0800) Subject: netconf: add support for neighbor proxy attribute X-Git-Tag: v3.14.0~27^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29cc864089ac311d1819d609e372b8f2083b3ec7;p=thirdparty%2Fiproute2.git netconf: add support for neighbor proxy attribute Report changes to proxy_arp/proxy_ndp attribute. --- diff --git a/ip/ipnetconf.c b/ip/ipnetconf.c index 9a77ecbf7..7353f5950 100644 --- a/ip/ipnetconf.c +++ b/ip/ipnetconf.c @@ -114,6 +114,10 @@ int print_netconf(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) fprintf(fp, "mc_forwarding %d ", *(int *)RTA_DATA(tb[NETCONFA_MC_FORWARDING])); + if (tb[NETCONFA_PROXY_NEIGH]) + fprintf(fp, "proxy_neigh %s ", + *(int *)RTA_DATA(tb[NETCONFA_PROXY_NEIGH])?"on":"off"); + fprintf(fp, "\n"); fflush(fp); return 0;