cvs commit: src/sys/net if_stf.c src/sys/netinet in_gif.c

Christian S.J. Peron csjp at
Sun Sep 23 10:50:18 PDT 2007

csjp        2007-09-23 17:50:17 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if_stf.c 
    sys/netinet          in_gif.c 
  Certain consumers of rtalloc like gif(4) and if_stf(4) lookup the
  route and once they are done with it, call rtfree().  rtfree() should
  only be used when we are certain we hold the last reference to the
  route.  This bug results in console messages like the following:
  rtfree: 0xc40f7000 has 1 refs
  This patch switches the rtfree() to use RTFREE_LOCKED() instead,
  which should handle the reference counting on the route better.
  Approved by:    re@ (gnn)
  Reviewed by:    bms
  Reported by:    many via net@ and current@
  Tested by:      many
  Revision  Changes    Path
  1.60      +2 -2      src/sys/net/if_stf.c
  1.37      +2 -2      src/sys/netinet/in_gif.c

More information about the cvs-src mailing list