cvs commit: src/sys/net rtsock.c

Gleb Smirnoff glebius at
Thu Mar 22 10:51:05 UTC 2007

glebius     2007-03-22 10:51:04 UTC

  FreeBSD src repository

  Modified files:
    sys/net              rtsock.c 
  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
          # arp -s 00:11:22:33:44:55
          # route change
          # ping
  Reported by:    avatar
  Revision  Changes    Path
  1.140     +17 -18    src/sys/net/rtsock.c

More information about the cvs-src mailing list