update openvpn to latest upstream release (fix #48)
[openwrt.git] / package / parprouted / patches / parprouted.patch
1 diff -rupw parprouted-0.63/arp.c parprouted-0.63-1/arp.c
2 --- parprouted-0.63/arp.c 2004-05-23 14:06:31.000000000 +0200
3 +++ parprouted-0.63-1/arp.c 2005-03-13 16:10:18.000000000 +0100
4 @@ -366,7 +366,7 @@ void *arp(char *ifname)
5 do {
6 pthread_testcancel();
7 /* Sleep a bit in order not to overload the system */
8 - usleep(300);
9 + usleep(3000);
10
11 if (arp_recv(sock, &frame) <= 0)
12 continue;
13 diff -rupw parprouted-0.63/parprouted.c parprouted-0.63-1/parprouted.c
14 --- parprouted-0.63/parprouted.c 2004-01-30 02:45:43.000000000 +0100
15 +++ parprouted-0.63-1/parprouted.c 2005-03-20 09:14:35.000000000 +0100
16 @@ -93,7 +93,7 @@ void processarp(int cleanup)
17
18 /* added route to the kernel */
19 if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
20 - "/sbin/ip route add %s/32 metric 50 dev %s scope link",
21 + "/sbin/route add -host %s metric 50 dev %s",
22 inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
23 {
24 syslog(LOG_INFO, "ip route command too large to fit in buffer!");
25 @@ -112,7 +112,7 @@ void processarp(int cleanup)
26
27 /* remove entry from arp table and remove route from kernel */
28 if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
29 - "/sbin/ip route del %s/32 metric 50 dev %s scope link",
30 + "/sbin/route del -host %s metric 50 dev %s",
31 inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
32 {
33 syslog(LOG_INFO, "ip route command too large to fit in buffer!");
This page took 0.044478 seconds and 5 git commands to generate.