]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r202289:
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Sep 2010 20:25:36 +0000 (20:25 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 1 Sep 2010 20:25:36 +0000 (20:25 +0000)
commit9d5ab3403782631d8667d53709236f8d0a1bfc4e
treec08fcb2129bd0202c1a597a3f949f925edaa7f93
parent9eb8eb3b8330a9ffc88346f77b6b15b73204c4f4
MFC r202289:

  Reject invalid CIDR widths rather than silently stopping at the first
  non-digit character.

  Due to an issue with rc(8) in a test configuration, ifconfig was being
  invoked with the address used again as the width - for example,

    ifconfig vlan0 10.0.0.1/10.0.0.1

  Prior to this change, that address/width would be interpreted as
  10.0.0.1/10.

git-svn-id: svn://svn.freebsd.org/base/stable/8@212114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ifconfig/af_inet.c