parprouted.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233
  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)
  5. do {
  6. pthread_testcancel();
  7. /* Sleep a bit in order not to overload the system */
  8. - usleep(300);
  9. + usleep(3000);
  10. if (arp_recv(sock, &frame) <= 0)
  11. continue;
  12. diff -rupw parprouted-0.63/parprouted.c parprouted-0.63-1/parprouted.c
  13. --- parprouted-0.63/parprouted.c 2004-01-30 02:45:43.000000000 +0100
  14. +++ parprouted-0.63-1/parprouted.c 2005-03-20 09:14:35.000000000 +0100
  15. @@ -93,7 +93,7 @@ void processarp(int cleanup)
  16. /* added route to the kernel */
  17. if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
  18. - "/sbin/ip route add %s/32 metric 50 dev %s scope link",
  19. + "/sbin/route add -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. @@ -112,7 +112,7 @@ void processarp(int cleanup)
  24. /* remove entry from arp table and remove route from kernel */
  25. if (snprintf(routecmd_str, ROUTE_CMD_LEN-1,
  26. - "/sbin/ip route del %s/32 metric 50 dev %s scope link",
  27. + "/sbin/route del -host %s metric 50 dev %s",
  28. inet_ntoa(cur_entry->ipaddr_ia), cur_entry->ifname) > ROUTE_CMD_LEN-1)
  29. {
  30. syslog(LOG_INFO, "ip route command too large to fit in buffer!");