My first patch. Upgrades parprouted package from version 0.64 to 0.7 . Signed-off-by: Mattia Aracne diff -rup parprouted-0.64/Makefile parprouted/Makefile --- parprouted-0.64/Makefile 2009-05-08 22:33:08.000000000 +0200 +++ parprouted/Makefile 2009-05-12 14:07:48.000000000 +0200 @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=parprouted -PKG_VERSION:=0.64 +PKG_VERSION:=0.7 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/ -PKG_MD5SUM:=14133c9cb8dd9c9a90ff37648ae7b31a +PKG_MD5SUM:=570f5deaf09600df8f80f589de79ecdb PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) Solo in parprouted/: Makefile~ diff -rup parprouted-0.64/patches/001-parprouted.patch parprouted/patches/001-parprouted.patch --- parprouted-0.64/patches/001-parprouted.patch 2009-05-08 22:33:08.000000000 +0200 +++ parprouted/patches/001-parprouted.patch 2009-05-12 13:59:59.000000000 +0200 @@ -1,6 +1,6 @@ -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 +diff -rupw parprouted-0.7/arp.c parprouted-0.7-1/arp.c +--- parprouted-0.7/arp.c 2008-01-28 00:43:37.000000000 +0100 ++++ parprouted-0.7-1/arp.c 2009-05-12 13:43:22.000000000 +0200 @@ -366,7 +366,7 @@ void *arp(char *ifname) do { pthread_testcancel(); @@ -10,24 +10,26 @@ diff -rupw parprouted-0.63/arp.c parprou 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) +Solo in parprouted-0.7-1/: arp.c~ +diff -rupw parprouted-0.7/parprouted.c parprouted-0.7-1/parprouted.c +--- parprouted-0.7/parprouted.c 2008-01-28 01:00:25.000000000 +0100 ++++ parprouted-0.7-1/parprouted.c 2009-05-12 13:47:47.000000000 +0200 +@@ -106,7 +106,7 @@ int route_remove(ARPTAB_ENTRY* cur_entry + int success = 1; + + 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!"); +@@ -136,7 +136,7 @@ int route_add(ARPTAB_ENTRY* cur_entry) + int success = 1; - /* 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!"); + 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!"); +Solo in parprouted-0.7-1/: parprouted.c~ _________________________________________________________________ Più di 100 Emoticon gratis per il tuo Messenger! http://intrattenimento.it.msn.com/emoticon _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel