Bug #5484
closed
diag_routes.php not displaying the full interface name
Added by Alexandre Paradis about 9 years ago.
Updated almost 9 years ago.
Category:
Operating System
Description
Under ipv4, netif
I have igb1_vlan3, but the real interface is igb1_vlan36.
the 6 is missing.
Destination Gateway Flags Use Mtu Netif Expire
default 10.11.16.241 UGS 230002453 1458 pppoe2
10.0.0.0/8 10.241.48.1 UGS 164474 1500 igb1_vlan3
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
Anyway, I guess ESF knows how to start the MFC process. It seems an easy little bit of crud to fix.
I've sent email to ume@ asking for a MFC.
- Subject changed from https://192.168.1.1/diag_routes.php not displaying the full interface name to diag_routes.php not displaying the full interface name
- Status changed from New to Confirmed
- Affected Version changed from 2.2.5 to All
- Category changed from Web Interface to Operating System
- Status changed from Confirmed to Feedback
- Assignee set to Renato Botelho
- Target version set to 2.3
- % Done changed from 0 to 100
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'.
That patch fixes the interface name field output for:
/usr/bin/netstat -i -f inet
Name Mtu Network Address Ipkts Ierrs Idrop Opkts Oerrs Coll
re0 - 10.49.68.0/22 10.49.68.250 0 - - 0 - -
re1 - 10.49.208.0/2 10.49.209.3 119101 - - 3176 - -
...
re0_vlan901 - 172.16.0.0 172.16.0.1 0 - - 0 - -
But not for:
/usr/bin/netstat -rW -f inet
Routing tables
Internet:
Destination Gateway Flags Use Mtu Netif Expire
...
172.16.0.0 link#13 U 0 1500 re0_vlan90
172.16.0.1 link#13 UHS 0 16384 lo0
There needs to be something similar for the Netif column in different code.
- Status changed from Feedback to New
- Status changed from New to Feedback
Merged in r291381, and merged back to pfSense/FreeBSD-src repo.
Next round of snapshots should be fixed.
- Status changed from Feedback to Resolved
Also available in: Atom
PDF