3 @@ -366,7 +366,7 @@ void *arp(char *ifname)
6 /* Sleep a bit in order not to overload the system */
10 if (arp_recv(sock, &frame) <= 0)
14 @@ -106,7 +106,7 @@ int route_remove(ARPTAB_ENTRY* cur_entry
17 if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
18 - "/sbin/ip route del %s/32 metric 50 dev %s scope link",
19 + "/sbin/route del -host %s metric 50 dev %s",
20 inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
22 syslog(LOG_INFO, "ip route command too large to fit in buffer!");
23 @@ -136,7 +136,7 @@ int route_add(ARPTAB_ENTRY* cur_entry)
26 if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
27 - "/sbin/ip route add %s/32 metric 50 dev %s scope link",
28 + "/sbin/route add -host %s metric 50 dev %s",
29 inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
31 syslog(LOG_INFO, "ip route command too large to fit in buffer!");