zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Matthew Martin <phy1729@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: [patch] Update _tcpdump for Free and Open BSD
Date: Sun, 24 Jul 2016 02:33:26 +0200	[thread overview]
Message-ID: <6225.1469320406@hydra.kiddle.eu> (raw)
In-Reply-To: <20160723235615.GA34715@CptOrmolo.darkstar>

Matthew Martin wrote:
> I haven't verified if the default options are still valid for whatever
> tcpdump Linux systems use.

It's the same tcpdump just with the BSDs merging into their source tree,
right? So FreeBSD just has 4.4.0 while on Linux it is 4.7.4. What
version is it on OpenBSD? Are the BSDs pulling upstream changes
from time to time or have they effectively done a permanent fork?
The Linux one seems to have been infected with long options.

I started some work on completing the filters which I ought to dig out
and finish.

> Specifying an that an option (such as -L) excludes all but one other
> option (such as -i) is very tedious. Any chance a notation like
> '(-*~i *)-L[...' could be supported?

You can use the sets for that. Something like:

_arguments -C -s \
  '-i+[specify interface]:interface:_interfaces' \
  - listt \
  '-J[list supported time stamp types]' \
  - listd \
  '-L[list data link types for the interface]' \
  - capture \
  ...

Oliver


  reply	other threads:[~2016-07-24  0:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-23 23:56 Matthew Martin
2016-07-24  0:33 ` Oliver Kiddle [this message]
2016-07-24  5:28   ` Matthew Martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6225.1469320406@hydra.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=phy1729@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).