diff options
author | Nicolas Thill <nico@openwrt.org> | 2005-07-24 23:44:19 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2005-07-24 23:44:19 +0000 |
commit | 0e9ab0b18e48c5487eca693cff28fed68a3b3627 (patch) | |
tree | bb92fc3bb72911341ab99bd168e7034a5f7dca2a /openwrt/package/parprouted/patches | |
parent | 910f49d7b9c08f9745bd5eb60cfb800c940899c3 (diff) | |
download | mtk-20170518-0e9ab0b18e48c5487eca693cff28fed68a3b3627.zip mtk-20170518-0e9ab0b18e48c5487eca693cff28fed68a3b3627.tar.gz mtk-20170518-0e9ab0b18e48c5487eca693cff28fed68a3b3627.tar.bz2 |
add parprouted
SVN-Revision: 1542
Diffstat (limited to 'openwrt/package/parprouted/patches')
-rw-r--r-- | openwrt/package/parprouted/patches/parprouted.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/openwrt/package/parprouted/patches/parprouted.patch b/openwrt/package/parprouted/patches/parprouted.patch new file mode 100644 index 0000000..17fbdec --- /dev/null +++ b/openwrt/package/parprouted/patches/parprouted.patch @@ -0,0 +1,33 @@ +diff -rupw parprouted-0.63/arp.c parprouted-0.63-1/arp.c +--- parprouted-0.63/arp.c 2004-05-23 14:06:31.000000000 +0200 ++++ parprouted-0.63-1/arp.c 2005-03-13 16:10:18.000000000 +0100 +@@ -366,7 +366,7 @@ void *arp(char *ifname) + do { + pthread_testcancel(); + /* Sleep a bit in order not to overload the system */ +- usleep(300); ++ usleep(3000); + + if (arp_recv(sock, &frame) <= 0) + continue; +diff -rupw parprouted-0.63/parprouted.c parprouted-0.63-1/parprouted.c +--- parprouted-0.63/parprouted.c 2004-01-30 02:45:43.000000000 +0100 ++++ parprouted-0.63-1/parprouted.c 2005-03-20 09:14:35.000000000 +0100 +@@ -93,7 +93,7 @@ void processarp(int cleanup) + + /* added route to the kernel */ + if (snprintf(routecmd_str, ROUTE_CMD_LEN-1, +- "/sbin/ip route add %s/32 metric 50 dev %s scope link", ++ "/sbin/route add -host %s metric 50 dev %s", + inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1) + { + syslog(LOG_INFO, "ip route command too large to fit in buffer!"); +@@ -112,7 +112,7 @@ void processarp(int cleanup) + + /* remove entry from arp table and remove route from kernel */ + if (snprintf(routecmd_str, ROUTE_CMD_LEN-1, +- "/sbin/ip route del %s/32 metric 50 dev %s scope link", ++ "/sbin/route del -host %s metric 50 dev %s", + inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1) + { + syslog(LOG_INFO, "ip route command too large to fit in buffer!"); |