All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@eurodev.net>
To: Amin Azez <azez@ufomechanic.net>
Cc: Harald Welte <laforge@netfilter.org>,
	Netfilter Development Mailinglist
	<netfilter-devel@lists.netfilter.org>,
	Patrick McHardy <kaber@trash.net>
Subject: Re: [RFC][LIBNFNETLINK 3/3] API changes
Date: Mon, 13 Feb 2006 22:13:00 +0100	[thread overview]
Message-ID: <43F0F65C.7030604@eurodev.net> (raw)
In-Reply-To: <43F0A945.4010902@ufomechanic.net>

Amin Azez wrote:
> AFAIR, done is not required unless we are trying to copy someone else
> api type.
> 
> 3 types of return values were permitted, <0, 0 and >0, by the function
> which now has "done" added. 0 meant continue, either <0 or >0 meant
> "stop now" and the other meant "stop after all messages in the currently
> read packet", it's hard to see how this doesn't provide what done
> provided; even with 2 values.

Two kind of messages that mean "stop now" can make nfnl_handle_packet
return 0.

a) ACK messages: When the client request some information with the
NLM_F_ACK flag set.
b) DONE messages: At dumping, the last message received has the
NLM_F_MULTI flag set (NLMSG_DONE) to notify that the dumping has finished.

-- 
Pablo

  reply	other threads:[~2006-02-13 21:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-12 21:39 [RFC][LIBNFNETLINK 3/3] API changes Pablo Neira Ayuso
2006-02-13 11:44 ` Harald Welte
2006-02-13 15:44   ` Amin Azez
2006-02-13 21:13     ` Pablo Neira Ayuso [this message]
2006-02-14  9:18       ` Amin Azez
2006-02-13 21:10   ` Pablo Neira Ayuso

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=43F0F65C.7030604@eurodev.net \
    --to=pablo@eurodev.net \
    --cc=azez@ufomechanic.net \
    --cc=kaber@trash.net \
    --cc=laforge@netfilter.org \
    --cc=netfilter-devel@lists.netfilter.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.