mtm         2007-10-29 00:08:24 UTC

  FreeBSD src repository

  Modified files:
    sbin/route           route.c 
  Log:
  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 <[EMAIL PROTECTED]> (mostly)
  MFC after:      1 week
  
  Revision  Changes    Path
  1.82      +24 -20    src/sbin/route/route.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