/bionic/libc/kernel/uapi/linux/netfilter/ |
nfnetlink_compat.h | 29 __u16 nfa_len; member in struct:nfattr 36 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) && (nfa)->nfa_len <= (len)) 37 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), (struct nfattr *) (((char *) (nfa)) + NFA_ALIGN((nfa)->nfa_len))) 41 #define NFA_PAYLOAD(nfa) ((int) ((nfa)->nfa_len) - NFA_LENGTH(0)) 45 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *) (start); (skb)->len; })
|
/external/kernel-headers/original/uapi/linux/netfilter/ |
nfnetlink_compat.h | 26 __u16 nfa_len; member in struct:nfattr 39 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ 40 && (nfa)->nfa_len <= (len)) 41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ 42 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len))) 46 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0)) 52 ({ (start)->nfa_len = skb_tail_pointer(skb) - (unsigned char *)(start); \
|
/external/libnfnetlink/include/libnfnetlink/ |
linux_nfnetlink_compat.h | 23 u_int16_t nfa_len; member in struct:nfattr 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); \
|
/external/libnl/include/linux-private/linux/netfilter/ |
nfnetlink_compat.h | 25 __u16 nfa_len; member in struct:nfattr 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/libpcap/ |
pcap-netfilter-linux.c | 309 uint16_t nfa_len; member in struct:my_nfattr 343 nfa->nfa_len = NFA_LENGTH(mynfa->nfa_len); 344 memcpy(NFA_DATA(nfa), mynfa->data, mynfa->nfa_len); 345 nlh->nlmsg_len = NLMSG_ALIGN(nlh->nlmsg_len) + NFA_ALIGN(nfa->nfa_len); 411 nfa.nfa_len = sizeof(msg); 427 nfa.nfa_len = sizeof(msg); 443 nfa.nfa_len = sizeof(msg); 465 nfa.nfa_len = sizeof(msg); 481 nfa.nfa_len = sizeof(msg) [all...] |