From: tmartiro Date: Tue, 18 Jul 2017 07:34:21 +0000 (+0300) Subject: replace space to tabs, add kernel styles multiline, remove trailing whitespaces. X-Git-Tag: frr-4.0-dev~502^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d1479ec8955cf4d906a28e76d1d2071e2fcfa859;p=mirror%2Ffrr.git replace space to tabs, add kernel styles multiline, remove trailing whitespaces. --- diff --git a/zebra/interface.c b/zebra/interface.c index 11d02f6b9d..4059cbf646 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -769,19 +769,17 @@ void if_nbr_ipv6ll_to_ipv4ll_neigh_update(struct interface *ifp, inet_pton(AF_INET, buf, &ipv4_ll); - ipv6_ll_address_to_mac(address, (u_char *)mac); - + ipv6_ll_address_to_mac(address, (u_char *)mac); + /* - * Remove existed arp record for the interface, - * because netlink protocol does not support message for update. - * supported commands RTM_NEWNEIGH or RTM_DELNEIGH + * Remove existed arp record for the interface as netlink + * protocol does not have update message types + * + * supported message types are RTM_NEWNEIGH and RTM_DELNEIGH */ - kernel_neigh_update (0, ifp->ifindex, ipv4_ll.s_addr, mac, 6); - - /* - * Add arp record - */ + + /* Add arp record */ kernel_neigh_update (add, ifp->ifindex, ipv4_ll.s_addr, mac, 6); zvrf->neigh_updates++; }