]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r295836:
authorkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 6 Mar 2016 08:52:03 +0000 (08:52 +0000)
committerkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 6 Mar 2016 08:52:03 +0000 (08:52 +0000)
commitfe867aa714b7efe586097cfd5c592c65da5c4af5
treeb7530b1a66b20cd4cf98d809d1b0d18733fca459
parent97057ba74e72063249ecfbe559a738ed0974b62b
MFC r295836:
ifconfig(8): can't use 'name' or 'description' when creating interface with auto numbering

If one does 'ifconfig tap create name blah', it will return error because the
'name' command doesn't properly populate the request sent to ioctl(...). The
'description' command has the same bug, and is also fixed with this patch.

If one does 'ifconfig tap create mtu 9000 name blah', it DOES work, but 'tap0'
(or other sequence number) is echoed, instead of the expected 'blah'. (assuming
the name change actually succeeded)

PR:     206876
Submitted by:       Marie Helene Kvello-Aune <marieheleneka@gmail.com>
Differential Revision:      https://reviews.freebsd.org/D5341

git-svn-id: svn://svn.freebsd.org/base/stable/10@296425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ifconfig/ifclone.c
sbin/ifconfig/ifconfig.c
sbin/ifconfig/ifconfig.h