source: freewrt/package/parprouted/patches/parprouted.patch@ 621d5d2

freewrt_2_0
Last change on this file since 621d5d2 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
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)  
    366366    do {
    367367      pthread_testcancel();
    368368      /* Sleep a bit in order not to overload the system */
    369       usleep(300);
     369      usleep(3000);
    370370
    371371      if (arp_recv(sock, &frame) <= 0)
    372372            continue;
  • parprouted.c

    diff -rupw parprouted-0.63/parprouted.c parprouted-0.63-1/parprouted.c
    old new void processarp(int cleanup)  
    9393
    9494            /* added route to the kernel */
    9595            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",
    9797                     inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
    9898            {
    9999                syslog(LOG_INFO, "ip route command too large to fit in buffer!");
    void processarp(int cleanup)  
    112112
    113113            /* remove entry from arp table and remove route from kernel */
    114114            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",
    116116                     inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
    117117            {
    118118                syslog(LOG_INFO, "ip route command too large to fit in buffer!");
Note: See TracBrowser for help on using the repository browser.