Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2008 07:37:08 +0000 (UTC)
From:      Mike Makonnen <mtm@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/route route.c
Message-ID:  <200801280737.m0S7b8nm026091@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
mtm         2008-01-28 07:37:08 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_7)
    sbin/route           route.c 
  Log:
  MFC: ver. 1.82-1.83
          Fix an error in bit shifting logic for network addresses. The route
          command would add incorrect routing entries if network numbers weren't
          fully "spelled" out according to their class. For example:
            # route add 128.0/16   (works)
            # route add 128/16     (doesn't work)
            # route add 193.0.0/24 (works)
            # route add 193/24     (doesn't work)
  
          Also, rework the way a netmask is deduced from network number if
          it [netmask] is not specified.
  
          Submitted by:   Nuno Antunes <nuno.antunes@gmail.com> (mostly)
  
  Revision  Changes    Path
  1.81.2.1  +23 -20    src/sbin/route/route.c



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