Home
last modified time | relevance | path

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

/external/libnl/lib/netfilter/
Dnfnl.c151 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_family() local
153 return nfg->nfgen_family; in nfnlmsg_family()
162 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_res_id() local
164 return ntohs(nfg->res_id); in nfnlmsg_res_id()
176 struct nfgenmsg *nfg; in nfnlmsg_append() local
178 nfg = nlmsg_reserve(msg, sizeof(*nfg), NLMSG_ALIGNTO); in nfnlmsg_append()
179 if (nfg == NULL) in nfnlmsg_append()
182 nfg->nfgen_family = family; in nfnlmsg_append()
183 nfg->version = NFNETLINK_V0; in nfnlmsg_append()
184 nfg->res_id = htons(res_id); in nfnlmsg_append()
/external/libpcap/
Dpcap-netfilter-linux.c130 const struct nfgenmsg *nfg = NULL; in netfilter_read_linux() local
141 nfg = NLMSG_DATA(nlh); in netfilter_read_linux()
143 struct nfattr *attr = NFM_NFA(nfg); in netfilter_read_linux()
199 if (nfg != NULL) in netfilter_read_linux()
200 nfqueue_send_verdict(handle, ntohs(nfg->res_id), id, NF_ACCEPT); in netfilter_read_linux()
251 struct nfgenmsg *nfg = (struct nfgenmsg *) (buf + sizeof(struct nlmsghdr)); in netfilter_send_config_msg() local
266 nfg->nfgen_family = family; in netfilter_send_config_msg()
267 nfg->version = NFNETLINK_V0; in netfilter_send_config_msg()
268 nfg->res_id = htons(res_id); in netfilter_send_config_msg()