[netfilter-cvslog] r4515 - trunk/libnfnetlink/include/libnfnetlink
laforge at netfilter.org
laforge at netfilter.org
Mon Nov 14 16:36:46 CET 2005
Author: laforge at netfilter.org
Date: 2005-11-14 16:36:46 +0100 (Mon, 14 Nov 2005)
New Revision: 4515
Modified:
trunk/libnfnetlink/include/libnfnetlink/linux_nfnetlink.h
Log:
update to current kernel header file
Modified: trunk/libnfnetlink/include/libnfnetlink/linux_nfnetlink.h
===================================================================
--- trunk/libnfnetlink/include/libnfnetlink/linux_nfnetlink.h 2005-11-14 15:03:38 UTC (rev 4514)
+++ trunk/libnfnetlink/include/libnfnetlink/linux_nfnetlink.h 2005-11-14 15:36:46 UTC (rev 4515)
@@ -112,7 +112,6 @@
{
int (*call)(struct sock *nl, struct sk_buff *skb,
struct nlmsghdr *nlh, struct nfattr *cda[], int *errp);
- kernel_cap_t cap_required; /* capabilities required for this msg */
u_int16_t attr_count; /* number of nfattr's */
};
@@ -146,7 +145,7 @@
extern int nfnetlink_subsys_register(struct nfnetlink_subsystem *n);
extern int nfnetlink_subsys_unregister(struct nfnetlink_subsystem *n);
-extern int nfattr_parse(struct nfattr *tb[], int maxattr,
+extern void nfattr_parse(struct nfattr *tb[], int maxattr,
struct nfattr *nfa, int len);
#define nfattr_parse_nested(tb, max, nfa) \
@@ -154,11 +153,14 @@
#define nfattr_bad_size(tb, max, cta_min) \
({ int __i, __res = 0; \
- for (__i=0; __i<max; __i++) \
+ for (__i=0; __i<max; __i++) { \
+ if (!cta_min[__i]) \
+ continue; \
if (tb[__i] && NFA_PAYLOAD(tb[__i]) < cta_min[__i]){ \
__res = 1; \
break; \
} \
+ } \
__res; \
})
More information about the netfilter-cvslog
mailing list