Home
last modified time | relevance | path

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

/third_party/libnl/lib/netfilter/
Dnfnl.c155 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_family() local
157 return nfg->nfgen_family; in nfnlmsg_family()
166 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_res_id() local
168 return ntohs(nfg->res_id); in nfnlmsg_res_id()
180 struct nfgenmsg *nfg; in nfnlmsg_append() local
182 nfg = nlmsg_reserve(msg, sizeof(*nfg), NLMSG_ALIGNTO); in nfnlmsg_append()
183 if (nfg == NULL) in nfnlmsg_append()
186 nfg->nfgen_family = family; in nfnlmsg_append()
187 nfg->version = NFNETLINK_V0; in nfnlmsg_append()
188 nfg->res_id = htons(res_id); in nfnlmsg_append()
/third_party/iptables/iptables/
Dnft.c3213 struct nfgenmsg *nfg = mnl_nlmsg_put_extra_header(nlh, sizeof(*nfg)); in nft_compatible_revision() local
3214 nfg->nfgen_family = pf; in nft_compatible_revision()
3215 nfg->version = NFNETLINK_V0; in nft_compatible_revision()
3216 nfg->res_id = 0; in nft_compatible_revision()