Home
last modified time | relevance | path

Searched refs:nfa (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/include/uapi/linux/netfilter/
Dnfnetlink_compat.h39 #define NFA_OK(nfa,len) ((len) > 0 && (nfa)->nfa_len >= sizeof(struct nfattr) \ argument
40 && (nfa)->nfa_len <= (len))
41 #define NFA_NEXT(nfa,attrlen) ((attrlen) -= NFA_ALIGN((nfa)->nfa_len), \ argument
42 (struct nfattr *)(((char *)(nfa)) + NFA_ALIGN((nfa)->nfa_len)))
45 #define NFA_DATA(nfa) ((void *)(((char *)(nfa)) + NFA_LENGTH(0))) argument
46 #define NFA_PAYLOAD(nfa) ((int)((nfa)->nfa_len) - NFA_LENGTH(0)) argument
/Linux-v6.6/tools/bpf/bpftool/
Dnet.c738 const struct bpf_link_info *nfa = a; in netfilter_link_compar() local
742 delta = nfa->netfilter.pf - nfb->netfilter.pf; in netfilter_link_compar()
746 delta = nfa->netfilter.hooknum - nfb->netfilter.hooknum; in netfilter_link_compar()
750 if (nfa->netfilter.priority < nfb->netfilter.priority) in netfilter_link_compar()
752 if (nfa->netfilter.priority > nfb->netfilter.priority) in netfilter_link_compar()
755 return nfa->netfilter.flags - nfb->netfilter.flags; in netfilter_link_compar()