summaryrefslogtreecommitdiffstats
path: root/include/libnftables
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2013-01-10 04:29:05 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2013-01-13 20:05:08 +0100
commit84d946b6573b02f83f14984ae737508749d2a419 (patch)
tree6c6b90dbf73b6bea8235986d15b04c37b58094ed /include/libnftables
parent8741da3feeb86a1dacaab0d71b654a5c2e2f67ce (diff)
rule: Add a function to get rule's family
Add nft_rule_attr_get_u8 to obtain the family number. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Diffstat (limited to 'include/libnftables')
-rw-r--r--include/libnftables/rule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h
index a944c00..2cd1bf3 100644
--- a/include/libnftables/rule.h
+++ b/include/libnftables/rule.h
@@ -26,6 +26,7 @@ void nft_rule_attr_set_str(struct nft_rule *r, uint16_t attr, char *str);
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);
+uint8_t nft_rule_attr_get_u8(struct nft_rule *r, uint16_t attr);
uint64_t nft_rule_attr_get_u64(struct nft_rule *r, uint16_t attr);
void nft_rule_add_expr(struct nft_rule *r, struct nft_rule_expr *expr);