Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2001 05:44:26 -0700 (PDT)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/route route.8 route.c
Message-ID:  <200106081244.f58CiQs71256@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
ru          2001/06/08 05:44:26 PDT

  Modified files:
    sbin/route           route.8 route.c 
  Log:
  When changing an indirect route, kernel routing code allocates
  a route to the gateway and caches it in the route structure.
  It may happen (if the routing table is screwed) that the gateway
  route is the same route as the one being modified, in which case
  a kernel reports EDQUOT.  Be more verbose about this:
  
  # route add -net 10 192.168.4.65
  add net 10: gateway 192.168.4.65
  # netstat -rn -finet
  Routing tables
  
  Internet:
  Destination        Gateway            Flags     Refs     Use     Netif Expire
  default            192.168.4.65       UGSc        1        7      rl0
  10                 192.168.4.65       UGSc        0        0      rl0
  127.0.0.1          127.0.0.1          UH          0      178      lo0
  192.168.4          link#1             UC          2        0      rl0 =>
  192.168.4.65       0:d0:b7:16:9c:c6   UHLW        2        0      rl0   1123
  
  Before:
  
  # route change -net 10 10.0.0.1
  route: writing to routing socket: Disc quota exceeded
  change net 10: gateway 10.0.0.1: Disc quota exceeded
  
  After:
  
  # ./route change -net 10 10.0.0.1
  route: writing to routing socket: Disc quota exceeded
  change net 10: gateway 10.0.0.1: gateway uses the same route
  
  PR:		bin/1093, misc/26833
  
  Revision  Changes    Path
  1.25      +9 -3      src/sbin/route/route.8
  1.47      +4 -1      src/sbin/route/route.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?200106081244.f58CiQs71256>