From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [libnftables PATCH] rule: Add a function to get rule's family
Date: Sun, 13 Jan 2013 20:08:10 +0100 [thread overview]
Message-ID: <20130113190810.GA16399@1984> (raw)
In-Reply-To: <1357828145-18588-1-git-send-email-tomasz.bursztyka@linux.intel.com>
On Thu, Jan 10, 2013 at 04:29:05PM +0200, Tomasz Bursztyka wrote:
> diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h
> index a944c00..310262a 100644
> --- a/include/libnftables/rule.h
> +++ b/include/libnftables/rule.h
> @@ -28,6 +28,8 @@ void *nft_rule_attr_get(struct nft_rule *r, uint16_t attr);
> const char *nft_rule_attr_get_str(struct nft_rule *r, uint16_t attr);
> uint64_t nft_rule_attr_get_u64(struct nft_rule *r, uint16_t attr);
>
> +uint8_t nft_rule_get_family(struct nft_rule *r);
I have applied this with a little modification, the new interface is
nft_rule_attr_get_u8 so you can retrieve the family via
NFT_RULE_ATTR_FAMILY.
prev parent reply other threads:[~2013-01-13 19:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 14:29 [libnftables PATCH] rule: Add a function to get rule's family Tomasz Bursztyka
2013-01-13 19:08 ` Pablo Neira Ayuso [this message]
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=20130113190810.GA16399@1984 \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=tomasz.bursztyka@linux.intel.com \
/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 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).