source:
freewrt/package/parprouted/patches/parprouted.patch@
621d5d2
| Last change on this file since 621d5d2 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 1.5 KB | |
-
parprouted-0.
diff -rupw parprouted-0.63/arp.c parprouted-0.63-1/arp.c
old new void *arp(char *ifname) 366 366 do { 367 367 pthread_testcancel(); 368 368 /* Sleep a bit in order not to overload the system */ 369 usleep(300 );369 usleep(3000); 370 370 371 371 if (arp_recv(sock, &frame) <= 0) 372 372 continue; -
parprouted.c
diff -rupw parprouted-0.63/parprouted.c parprouted-0.63-1/parprouted.c
old new void processarp(int cleanup) 93 93 94 94 /* added route to the kernel */ 95 95 if (snprintf(routecmd_str, ROUTE_CMD_LEN-1, 96 "/sbin/ ip route add %s/32 metric 50 dev %s scope link",96 "/sbin/route add -host %s metric 50 dev %s", 97 97 inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1) 98 98 { 99 99 syslog(LOG_INFO, "ip route command too large to fit in buffer!"); … … void processarp(int cleanup) 112 112 113 113 /* remove entry from arp table and remove route from kernel */ 114 114 if (snprintf(routecmd_str, ROUTE_CMD_LEN-1, 115 "/sbin/ ip route del %s/32 metric 50 dev %s scope link",115 "/sbin/route del -host %s metric 50 dev %s", 116 116 inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1) 117 117 { 118 118 syslog(LOG_INFO, "ip route command too large to fit in buffer!");
Note:
See TracBrowser
for help on using the repository browser.
