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
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to