]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
netconf: add support for neighbor proxy attribute
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 18 Dec 2013 06:26:56 +0000 (22:26 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 18 Dec 2013 06:32:58 +0000 (22:32 -0800)
Report changes to proxy_arp/proxy_ndp attribute.

ip/ipnetconf.c

index 9a77ecbf787f6515daaa30990c51938f4a21b157..7353f5950828c0c8d1debba31fd5564085cff97d 100644 (file)
@@ -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;