Branch oldpackages for 14.07
[14.07/packages.git] / net / parprouted / patches / 001-parprouted.patch
1 --- a/arp.c
2 +++ b/arp.c
3 @@ -366,7 +366,7 @@ void *arp(char *ifname)
4      do {
5        pthread_testcancel();
6        /* Sleep a bit in order not to overload the system */
7 -      usleep(300);
8 +      usleep(3000);
9  
10        if (arp_recv(sock, &frame) <= 0)
11             continue;
12 --- a/parprouted.c
13 +++ b/parprouted.c
14 @@ -106,7 +106,7 @@ int route_remove(ARPTAB_ENTRY* cur_entry
15      int success = 1;
16      
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) 
21      {
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)
24      int success = 1;
25  
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) 
30      {
31         syslog(LOG_INFO, "ip route command too large to fit in buffer!");