Changeset 40577


Ignore:
Timestamp:
2014-04-27T22:22:01+02:00 (4 years ago)
Author:
hauke
Message:

parprouted: update to 0.7

This patch updates parprouted from 0.64 to 0.7. This fixes some bugs and
adds support for hosts moving across Ethernet interfaces. Built and tested
on a WNDR3700v2.

Signed-off-by: Tristan Schmelcher <tristan_schmelcher@…>

Location:
packages/net/parprouted
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/parprouted/Makefile

    r34209 r40577  
    99 
    1010PKG_NAME:=parprouted 
    11 PKG_VERSION:=0.64 
    12 PKG_RELEASE:=5 
     11PKG_VERSION:=0.70 
     12PKG_RELEASE:=1 
    1313 
    14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     14PKG_SOURCE:=$(PKG_NAME)-0.7.tar.gz 
    1515PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/ 
    16 PKG_MD5SUM:=14133c9cb8dd9c9a90ff37648ae7b31a 
     16PKG_MD5SUM:=570f5deaf09600df8f80f589de79ecdb 
     17PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-0.7 
    1718 
    1819include $(INCLUDE_DIR)/package.mk 
  • packages/net/parprouted/patches/001-parprouted.patch

    r15247 r40577  
    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)  
     1--- a/arp.c 
     2+++ b/arp.c 
     3@@ -366,7 +366,7 @@ void *arp(char *ifname) 
    54     do { 
    65       pthread_testcancel(); 
     
    1110       if (arp_recv(sock, &frame) <= 0) 
    1211            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)  
     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; 
    1725  
    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!"); 
     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!"); 
Note: See TracChangeset for help on using the changeset viewer.