Menu

#5 resolve port numbers in -n but not -nn

Git head
closed
nobody
None
5
2013-11-06
2002-06-24
No

Make -n resolve port/protocol numbers but not
hostnames, -nn for no
resolving at all

Discussion

  • Harald Hoyer

    Harald Hoyer - 2002-06-24
     
  • Bill Fenner

    Bill Fenner - 2002-07-06

    Logged In: YES
    user_id=109593

    There was a discussion on this on tcpdump-workers about a
    year ago; the worry was changing the output format in an
    incompatible way for e.g. scripts that ran "tcpdump -n" and
    matched against e.g. /(\d+\.\d+\.\d+\.\d+)\.(\d+) >
    (\d+\.\d+\.\d+\.\d+)\.(\d+)/ .

    One option is to reverse the meanings, i.e. "-n" stays the
    same and "-nn" means "resolve ports but not IP addresses"
    (or "do any lookups that don't take any time", which may be
    a nice semantic but may not be possible to know, e.g.
    tcpdump may not know if ether_ntohost() is going to just
    look in /etc/ethers or is going to look in NIS.)

     
  • Denis Ovsienko

    Denis Ovsienko - 2013-11-06
    • status: open --> closed
    • Group: --> Git head
     
  • Denis Ovsienko

    Denis Ovsienko - 2013-11-06

    Administrators of the "tcpdump" SourceForge project have superseded this tracker item (formerly artifact 573130, now patch 5) with issue 162 of the "tcpdump" GitHub project.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.