Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 10:51:04 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net rtsock.c
Message-ID:  <200703221051.l2MAp4IW033907@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2007-03-22 10:51:04 UTC

  FreeBSD src repository

  Modified files:
    sys/net              rtsock.c 
  Log:
  When working on an RTM_CHANGE do the route editing in the following
  sequence. First, if rt_ifa is going to be changed, then call
  ifa_rtrequest(RTM_DELETE). Second, if gateway is going to be changed,
  then call rt_setgate(). Third, change rt_ifa.
  
  With this change we are able to change a link level route to a
  gateway one, that wasn't possible before:
  
          # ifconfig em0 192.168.22.1/24
          # arp -s 192.168.22.99 00:11:22:33:44:55
          # route change 192.168.22.99 192.168.22.199
          # ping 192.168.22.99
          db>
  
  Reported by:    avatar
  
  Revision  Changes    Path
  1.140     +17 -18    src/sys/net/rtsock.c



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