https://redmine.pfsense.org/https://redmine.pfsense.org/favicon.ico?16780521162015-11-19T03:15:37ZpfSense bugtrackerpfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=226982015-11-19T03:15:37ZPhillip Davisphil@jankaritech.com
<ul></ul><p>This a "wonderful" feature of the netstat utility. The underlying code does this command to gather the data:<br />/usr/bin/netstat -rW -f inet</p>
<p>The "W" is supposed to make the display wide (and thus not cut off the characters in any fields). But it still limits the text length of the Netif field!<br /><a class="external" href="https://lists.freebsd.org/pipermail/freebsd-bugs/2014-April/055732.html">https://lists.freebsd.org/pipermail/freebsd-bugs/2014-April/055732.html</a><br /><a class="external" href="https://www.mail-archive.com/freebsd-bugs@freebsd.org/msg07205.html">https://www.mail-archive.com/freebsd-bugs@freebsd.org/msg07205.html</a></p>
<p>That is rubbish. Can someone fix that on FreeBSD? Or add a "WW" option that does "really do not truncate any output fields".</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=227082015-11-19T07:25:40ZJim Pingle
<ul></ul><p>This was fixed recently in FreeBSD HEAD,</p>
<p><a class="external" href="https://svnweb.freebsd.org/base?view=revision&revision=290367">https://svnweb.freebsd.org/base?view=revision&revision=290367</a></p>
<p>Not sure if that had an MFC (searching doesn't turn one up)</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=227162015-11-19T09:21:05ZPhillip Davisphil@jankaritech.com
<ul></ul><p>Seems a good thing to get MFC'd back to 10-STABLE - it makes the output do what most people are hoping it would do anyway. Admittedly it could break someones (dumb) script that expects the -W output to have fixed-width (but wider than ordinary) columns. But the doc of -W implies that the output could be any width. Nobody should be depending on fixed-width columns when using -W</p>
<p>Anyway, I guess ESF knows how to start the MFC process. It seems an easy little bit of crud to fix.</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=227512015-11-19T21:01:12ZJim Thompsonjim@netgate.com
<ul></ul><p>I've sent email to ume@ asking for a MFC.</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=227552015-11-19T21:16:52ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Subject</strong> changed from <i>https://192.168.1.1/diag_routes.php not displaying the full interface name</i> to <i>diag_routes.php not displaying the full interface name</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Confirmed</i></li><li><strong>Affected Version</strong> changed from <i>2.2.5</i> to <i>All</i></li></ul> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=228062015-11-20T07:59:25ZRenato Botelhorenato@netgate.com
<ul><li><strong>Category</strong> changed from <i>Web Interface</i> to <i>Operating System</i></li><li><strong>Status</strong> changed from <i>Confirmed</i> to <i>Feedback</i></li><li><strong>Assignee</strong> set to <i>Renato Botelho</i></li><li><strong>Target version</strong> set to <i>2.3</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>ume@ said he is going to MFC changes, and he also sent us the stable/10 patch. It was applied at</p>
<p><a class="external" href="https://github.com/pfsense/FreeBSD-src/commit/99ddd03d08b1fd5ae8f8ba04cac699afbe3ffb24">https://github.com/pfsense/FreeBSD-src/commit/99ddd03d08b1fd5ae8f8ba04cac699afbe3ffb24</a></p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=229892015-11-25T19:38:33ZChris Buechlercbuechler@gmail.com
<ul></ul><p>this actually working for anyone? Building world on a stock 11-CURRENT now to check it. VLANs on lagg for instance still come up cut off to 10 characters in 'netstat -rW -f inet'. lagg0_vlanXX ends up as 'lagg0_vlan'.</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=229992015-11-25T21:14:35ZPhillip Davisphil@jankaritech.com
<ul></ul><p>That patch fixes the interface name field output for:<br />/usr/bin/netstat -i -f inet<br />Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll<br />re0 - 10.49.68.0/22 10.49.68.250 0 - - 0 - -<br />re1 - 10.49.208.0/2 10.49.209.3 119101 - - 3176 - -<br />...<br />re0_vlan901 - 172.16.0.0 172.16.0.1 0 - - 0 - -</p>
<p>But not for:<br />/usr/bin/netstat -rW -f inet<br />Routing tables</p>
<p>Internet:<br />Destination Gateway Flags Use Mtu Netif Expire<br />...<br />172.16.0.0 link#13 U 0 1500 re0_vlan90<br />172.16.0.1 link#13 UHS 0 16384 lo0</p>
<p>There needs to be something similar for the Netif column in different code.</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=230132015-11-26T08:35:43ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>New</i></li></ul><p>This was fixed on FreeBSD HEAD on Nov 20, after following commit:</p>
<p><a class="external" href="https://svnweb.freebsd.org/base?view=revision&revision=291097">https://svnweb.freebsd.org/base?view=revision&revision=291097</a></p>
<p>This is marked to be MFC'd to stable/10 in 1 week. After it's MFC'd I'll merge stable/10 to our devel branch and this ticket will be fixed. Moving it to new for now</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=230142015-11-27T03:14:31ZRenato Botelhorenato@netgate.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul><p>Merged in r291381, and merged back to pfSense/FreeBSD-src repo.</p>
<p>Next round of snapshots should be fixed.</p> pfSense - Bug #5484: diag_routes.php not displaying the full interface namehttps://redmine.pfsense.org/issues/5484?journal_id=231172015-12-01T19:40:47ZChris Buechlercbuechler@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Resolved</i></li></ul><p>fixed</p>