Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2001 06:52:12 -0800 (PST)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/netstat netstat.1 route.c src/sys/net route.c src/sys/netinet in.c in_rmx.c
Message-ID:  <200103151452.f2FEqCY04210@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
ru          2001/03/15 06:52:12 PST

  Modified files:
    usr.bin/netstat      netstat.1 route.c 
    sys/net              route.c 
    sys/netinet          in.c in_rmx.c 
  Log:
  net/route.c:
  
    A route generated from an RTF_CLONING route had the RTF_WASCLONED flag
    set but did not have a reference to the parent route, as documented in
    the rtentry(9) manpage.  This prevented such routes from being deleted
    when their parent route is deleted.
  
    Now, for example, if you delete an IP address from a network interface,
    all ARP entries that were cloned from this interface route are flushed.
  
    This also has an impact on netstat(1) output.  Previously, dynamically
    created ARP cache entries (RTF_STATIC flag is unset) were displayed as
    part of the routing table display (-r).  Now, they are only printed if
    the -a option is given.
  
  netinet/in.c, netinet/in_rmx.c:
  
    When address is removed from an interface, also delete all routes that
    point to this interface and address.  Previously, for example, if you
    changed the address on an interface, outgoing IP datagrams might still
    use the old address.  The only solution was to delete and re-add some
    routes.  (The problem is easily observed with the route(8) command.)
  
    Note, that if the socket was already bound to the local address before
    this address is removed, new datagrams generated from this socket will
    still be sent from the old address.
  
  PR:		kern/20785, kern/21914
  Reviewed by:	wollman (the idea)
  
  Revision  Changes    Path
  1.25      +9 -4      src/usr.bin/netstat/netstat.1
  1.47      +3 -3      src/usr.bin/netstat/route.c
  1.61      +5 -4      src/sys/net/route.c
  1.51      +12 -1     src/sys/netinet/in.c
  1.38      +9 -11     src/sys/netinet/in_rmx.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103151452.f2FEqCY04210>