From 205405c0294355754b3b4b0164b7fac69658739e Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=laforge/emailAddress=laforge@netfilter.org" Date: Sat, 5 Nov 2005 12:56:38 +0000 Subject: add nfnl_attr_present() --- include/libnfnetlink/libnfnetlink.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h index f3e4749..d789418 100644 --- a/include/libnfnetlink/libnfnetlink.h +++ b/include/libnfnetlink/libnfnetlink.h @@ -97,6 +97,9 @@ extern struct nlmsghdr *nfnl_get_msg_next(struct nfnl_handle *h, const unsigned char *buf, size_t len); +#define nfnl_attr_present(tb, attr) \ + (tb[attr-1]) + #define nfnl_get_data(tb, attr, type) \ ({ type __ret = 0; \ if (tb[attr-1]) \ -- cgit v1.2.3