tcpdump mailing list archives

Re: [Patch] tcpdump probabilistic sampling


From: Michael Richardson <mcr () sandelman ottawa on ca>
Date: Mon, 14 Apr 2008 20:33:50 -0400


"Guy" == Guy Harris <guy () alum mit edu> writes:
    Guy> Michael Richardson wrote:
    >> Only... -P is used somewhere else, in another patch, I think.  We
    >> gotta get 4.0 out, with long options...

    Guy> tcpdump currently still uses getopt(), so it doesn't support
    Guy> long options.

    Guy> Should we switch to getopt_long(), and include a BSD-licensed
    Guy> getopt_long() (e.g., one from one of the *BSDs) for platforms
    Guy> that don't have it?  (Glibc's had it for a while, I think
    Guy> recent versions of most of not all of the *BSDs have it, recent
    Guy> versions of OS X have it, and recent versions of Solaris have
    Guy> it, at least.)  

  My plan was to libnetdissect everything.
  Leave "tcpdump.c" being just main() (i.e. option processing), and
provide a net wrapper which could start fresh with getopt_long(), and
a full alphabet of options.  At least 10 letters are reserved because of
various extensions/compatibility with vendor versions...

-- 
]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson, Sandelman Software Works, Ottawa, ON    |net architect[
] mcr () sandelman ottawa on ca http://www.sandelman.ottawa.on.ca/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: