Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 May 2007 16:17:32 +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 route.c
Message-ID:  <200705221617.l4MGHW46090664@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
glebius     2007-05-22 16:17:32 UTC

  FreeBSD src repository

  Modified files:
    sys/net              route.c 
  Log:
  Some minor cleanups:
  - In rt_check() remove the senderr() macro and the "bad" label. They
    used to simplify code, but now aren't.
  - Remove extra RT_LOCK_ASSERT() in rt_setgate(). The RT_REMREF macro
    does this.
  - In rtfree() convert panics to KASSERTs.
  - Strict the routing API: rtfree() should be called only in a case
    when we are completely sure we've got the last reference on the
    rtentry. In all other cases RTFREE_LOCKED() macro should be used.
    If the reference isn't the last one spit out a warning printf.
    Correct the only(?) case for this in rt_check().
  - Fix typos in comments.
  
  Revision  Changes    Path
  1.119     +15 -22    src/sys/net/route.c



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