DragonFly BSD
DragonFly commits List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/netinet src/usr.sbin/arp src/sbin/route

From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Nov 2004 15:49:38 -0800 (PST)

dillon      2004/11/02 15:49:38 PST

DragonFly src repository

  Modified files:
    sys/netinet          if_ether.c 
    usr.sbin/arp         arp.c 
    sbin/route           route.c 
  Fix 'route add -host <target> -interface <interface_name>.  This was
  previously adding a static arp entry with the interface's MAC address
  instead of the target's address or an incomplete address.  The result is
  that the target cannot be routed to.
  The fix is to (1) Install the route with 'incomplete' link level info rather
  then using the interface's MAC address, (2) Allowing the incomplete address
  to be resolved and timeout normally, (3) re-clearing the entry to an
  incomplete status instead of destroying it when the ARP times out,
  and (4) Making 'arp -d -a' only clear link level routes marked static
  instead of deleting them.
  Noticed-by: Mikhail Teterin <mi+dragonflybsd@xxxxxxxxxxxxxxxxx>
  Revision  Changes    Path
  1.16      +11 -5     src/sys/netinet/if_ether.c
  1.5       +16 -5     src/usr.sbin/arp/arp.c
  1.8       +7 -0      src/sbin/route/route.c


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]