Public bug reported:

When executing ifconfig, it outputs the whole 10 characters of the
interface name. However, when using ifconfig -s (or ifconfig -a -s) it
doesn't include all the name of the interface (or 10+ characters).
Instead, it outputs only 8 characters of the interface.

ubuntu@dradis:~$ ifconfig -a
enP2p1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.245.71.108  netmask 255.255.248.0  broadcast 10.245.71.255
        inet6 fe80::ae1f:6bff:fe09:c052  prefixlen 64  scopeid 0x20<link>
        ether ac:1f:6b:09:c0:52  txqueuelen 1000  (Ethernet)
        RX packets 154570  bytes 229998298 (229.9 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 61080  bytes 6131460 (6.1 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enP2p1s0f1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        ether ac:1f:6b:09:c0:53  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ubuntu@dradis:~$ ifconfig -a -s
Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
enP2p1s0  1500   154607      0      0 0         61101      0      0      0 BMRU
enP2p1s0  1500        0      0      0 0             0      0      0      0 BM

** Affects: net-tools (Ubuntu)
     Importance: Critical
         Status: New

** Affects: net-tools (Ubuntu Bionic)
     Importance: Critical
         Status: New

** Description changed:

  When executing ifconfig, it outputs the whole 10 characters of the
  interface name. However, when using ifconfig -s (or ifconfig -a -s) it
  doesn't include all the name of the interface (or 10+ characters).
  Instead, it outputs only 8 characters of the interface.
  
- ubuntu@dradis:~$ ifconfig
+ ubuntu@dradis:~$ ifconfig -a
  enP2p1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
          inet 10.245.71.108  netmask 255.255.248.0  broadcast 10.245.71.255
          inet6 fe80::ae1f:6bff:fe09:c052  prefixlen 64  scopeid 0x20<link>
          ether ac:1f:6b:09:c0:52  txqueuelen 1000  (Ethernet)
-         RX packets 154396  bytes 229982516 (229.9 MB)
+         RX packets 154570  bytes 229998298 (229.9 MB)
          RX errors 0  dropped 0  overruns 0  frame 0
-         TX packets 60547  bytes 6062897 (6.0 MB)
+         TX packets 61080  bytes 6131460 (6.1 MB)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
  
- ubuntu@dradis:~$ ifconfig -s
+ enP2p1s0f1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
+         ether ac:1f:6b:09:c0:53  txqueuelen 1000  (Ethernet)
+         RX packets 0  bytes 0 (0.0 B)
+         RX errors 0  dropped 0  overruns 0  frame 0
+         TX packets 0  bytes 0 (0.0 B)
+         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
+ 
+ 
+ ubuntu@dradis:~$ ifconfig -a -s
  Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
- enP2p1s0  1500   154538      0      0 0         61063      0      0      0 
BMRU
- lo       65536      118      0      0 0           118      0      0      0 LRU
+ enP2p1s0  1500   154607      0      0 0         61101      0      0      0 
BMRU
+ enP2p1s0  1500        0      0      0 0             0      0      0      0 BM

** Changed in: net-tools (Ubuntu)
   Importance: Undecided => Critical

** Summary changed:

- ifconfig -s (or -a -s) doesn't output the full name of the interface
+ ifconfig -s (or -a -s) only outputs 8 characters of the interface name, when 
interfaces are 10+ characters.

** Also affects: net-tools (Ubuntu Bionic)
   Importance: Critical
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to net-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1763534

Title:
  ifconfig -s (or -a -s) only outputs 8 characters of the interface
  name, when interfaces are 10+ characters.

Status in net-tools package in Ubuntu:
  New
Status in net-tools source package in Bionic:
  New

Bug description:
  When executing ifconfig, it outputs the whole 10 characters of the
  interface name. However, when using ifconfig -s (or ifconfig -a -s) it
  doesn't include all the name of the interface (or 10+ characters).
  Instead, it outputs only 8 characters of the interface.

  ubuntu@dradis:~$ ifconfig -a
  enP2p1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
          inet 10.245.71.108  netmask 255.255.248.0  broadcast 10.245.71.255
          inet6 fe80::ae1f:6bff:fe09:c052  prefixlen 64  scopeid 0x20<link>
          ether ac:1f:6b:09:c0:52  txqueuelen 1000  (Ethernet)
          RX packets 154570  bytes 229998298 (229.9 MB)
          RX errors 0  dropped 0  overruns 0  frame 0
          TX packets 61080  bytes 6131460 (6.1 MB)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  enP2p1s0f1: flags=4098<BROADCAST,MULTICAST>  mtu 1500
          ether ac:1f:6b:09:c0:53  txqueuelen 1000  (Ethernet)
          RX packets 0  bytes 0 (0.0 B)
          RX errors 0  dropped 0  overruns 0  frame 0
          TX packets 0  bytes 0 (0.0 B)
          TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  
  ubuntu@dradis:~$ ifconfig -a -s
  Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
  enP2p1s0  1500   154607      0      0 0         61101      0      0      0 
BMRU
  enP2p1s0  1500        0      0      0 0             0      0      0      0 BM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/net-tools/+bug/1763534/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to