mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-03 20:47:11 +00:00
netconf: add support for neighbor proxy attribute
Report changes to proxy_arp/proxy_ndp attribute.
This commit is contained in:
parent
ec69a50cc8
commit
29cc864089
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user