Home
last modified time | relevance | path

Searched refs:NFA_ALIGN (Results 1 – 5 of 5) sorted by relevance

/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_compat.h38 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) macro
41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \
42 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
43 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len))
44 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len))
/external/libnfnetlink/include/libnfnetlink/
Dlinux_nfnetlink_compat.h35 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) macro
38 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \
39 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
40 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len))
41 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len))
/external/libnl/include/linux-private/linux/netfilter/
Dnfnetlink_compat.h37 #define NFA_ALIGN(len) (((len) + NFA_ALIGNTO - 1) & ~(NFA_ALIGNTO - 1)) macro
40 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \
41 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
42 #define NFA_LENGTH(len) (NFA_ALIGN(sizeof(struct nfattr)) + (len))
43 #define NFA_SPACE(len) NFA_ALIGN(NFA_LENGTH(len))
/external/libnfnetlink/src/
Dlibnfnetlink.c894 n->nlmsg_len = (NLMSG_ALIGN(n->nlmsg_len) + NFA_ALIGN(len)); in nfnl_addattr_l()
918 if (NFA_ALIGN(nfa->nfa_len) + len > maxlen) { in nfnl_nfa_addattr_l()
923 subnfa = (struct nfattr *)(((char *)nfa) + NFA_ALIGN(nfa->nfa_len)); in nfnl_nfa_addattr_l()
927 nfa->nfa_len = NFA_ALIGN(nfa->nfa_len) + len; in nfnl_nfa_addattr_l()
1076 iov[1].iov_len = NFA_ALIGN(len); in nfnl_build_nfa_iovec()
/external/libpcap/
Dpcap-netfilter-linux.c345 nlh->nlmsg_len = NLMSG_ALIGN(nlh->nlmsg_len) + NFA_ALIGN(nfa->nfa_len); in netfilter_send_config_msg()