Skip to content
Snippets Groups Projects
  • Guillaume Valadon's avatar
    Workaround to ignore interfaces name truncated by netstat · 02ae08b4
    Guillaume Valadon authored
    When interface names are longer than 7 characters, netstat will truncate
    them to the first 7 chars which leads to looking up an invalid interface
    name.
    We attempt to guess the name of the interface based on the output of
    ifconfig -l. If there is only one candidate we consider it, otherwise we
    ignore it.
    02ae08b4