When showing configuration for interfaces that do not have IFF_BROADCAST enabled, like if_tun, if_gre, etc. ifconfig prints a trailing whitespace after the netmask. Fix: Apply attached patch. Patch attached with submission follows: How-To-Repeat: #ifconfig gre0 gre0: flags=b151<UP,POINTOPOINT,RUNNING,PROMISC,LINK0,LINK1,MULTICAST> metric 0 mtu 1476 tunnel inet x.x.x.x --> y.y.y.y inet a.a.a.a --> b.b.b.b netmask 0xfffffffc <- Trailing whitespace here! :) #
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Reassign to the net@ list
A commit references this bug: Author: asomers Date: Tue Feb 26 03:34:48 UTC 2019 New revision: 344559 URL: https://svnweb.freebsd.org/changeset/base/344559 Log: ifconfig: eliminate trailing whitespace Eliminate trailing whitespace on inet, inet6, and groups lines. I think the "list txpower" command will still show some, but I'm not able to test that. PR: 153731 Reported-by: Nikolay Denev <ndenev@gmail.com> MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D19004 Changes: head/sbin/ifconfig/af_inet.c head/sbin/ifconfig/af_inet6.c head/sbin/ifconfig/ifconfig.c head/sbin/ifconfig/ifgroup.c
A commit references this bug: Author: asomers Date: Thu Mar 21 00:17:44 UTC 2019 New revision: 345357 URL: https://svnweb.freebsd.org/changeset/base/345357 Log: MFC r344559: ifconfig: eliminate trailing whitespace Eliminate trailing whitespace on inet, inet6, and groups lines. I think the "list txpower" command will still show some, but I'm not able to test that. PR: 153731 Reported-by: Nikolay Denev <ndenev@gmail.com> Differential Revision: https://reviews.freebsd.org/D19004 Changes: _U stable/12/ stable/12/sbin/ifconfig/af_inet.c stable/12/sbin/ifconfig/af_inet6.c stable/12/sbin/ifconfig/ifconfig.c stable/12/sbin/ifconfig/ifgroup.c
A commit references this bug: Author: asomers Date: Thu Mar 21 22:40:06 UTC 2019 New revision: 345397 URL: https://svnweb.freebsd.org/changeset/base/345397 Log: MFC r343530, r344559 r343530: ifconfig: fix endianness bug displaying pfsync interfaces Reviewed by: kp Differential Revision: https://reviews.freebsd.org/D19005 r344559: ifconfig: eliminate trailing whitespace Eliminate trailing whitespace on inet, inet6, and groups lines. I think the "list txpower" command will still show some, but I'm not able to test that. PR: 153731 Reported-by: Nikolay Denev <ndenev@gmail.com> Differential Revision: https://reviews.freebsd.org/D19004 Changes: _U stable/11/ stable/11/sbin/ifconfig/af_inet.c stable/11/sbin/ifconfig/af_inet6.c stable/11/sbin/ifconfig/ifconfig.c stable/11/sbin/ifconfig/ifgroup.c stable/11/sbin/ifconfig/ifpfsync.c