Home
last modified time | relevance | path

Searched refs:nfa_len (Results 1 – 6 of 6) sorted by relevance

/external/libnl/include/linux-private/linux/netfilter/
Dnfnetlink_compat.h25 __u16 nfa_len; member
38 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \
39 && (nfa)->nfa_len <= (len))
40 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \
41 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
45 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0))
51 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); \
/external/kernel-headers/original/uapi/linux/netfilter/
Dnfnetlink_compat.h25 __u16 nfa_len; member
38 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \
39 && (nfa)->nfa_len <= (len))
40 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \
41 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
45 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0))
51 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); \
/external/libnfnetlink/include/libnfnetlink/
Dlinux_nfnetlink_compat.h23 u_int16_t nfa_len; member
36 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \
37 && (nfa)->nfa_len <= (len))
38 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \
39 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
43 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0))
49 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); \
Dlibnfnetlink.h204 ({ (tail)->nfa_len = (void *) NLMSG_TAIL(nlh) - (void *) tail; })
/external/libpcap/
Dpcap-netfilter-linux.c243 u_int16_t nfa_len; member
277 nfa->nfa_len = NFA_LENGTH(mynfa->nfa_len); in netfilter_send_config_msg()
278 memcpy(NFA_DATA(nfa), mynfa->data, mynfa->nfa_len); in netfilter_send_config_msg()
279 nlh->nlmsg_len = NLMSG_ALIGN(nlh->nlmsg_len) + NFA_ALIGN(nfa->nfa_len); in netfilter_send_config_msg()
345 nfa.nfa_len = sizeof(msg); in nflog_send_config_cmd()
361 nfa.nfa_len = sizeof(msg); in nflog_send_config_mode()
377 nfa.nfa_len = sizeof(msg); in nfqueue_send_verdict()
399 nfa.nfa_len = sizeof(msg); in nfqueue_send_config_cmd()
415 nfa.nfa_len = sizeof(msg); in nfqueue_send_config_mode()
/external/libnfnetlink/src/
Dlibnfnetlink.c117 nfa, NFA_TYPE(nfa), nfa->nfa_len); in nfnl_dump_packet()
892 nfa->nfa_len = 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()
925 subnfa->nfa_len = len; in nfnl_nfa_addattr_l()
927 nfa->nfa_len = NFA_ALIGN(nfa->nfa_len) + len; in nfnl_nfa_addattr_l()
1070 nfa->nfa_len = sizeof(struct nfattr) + len; in nfnl_build_nfa_iovec()