Searched refs:nfg (Results 1 – 6 of 6) sorted by relevance
151 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_family() local153 return nfg->nfgen_family; in nfnlmsg_family()162 struct nfgenmsg *nfg = nlmsg_data(nlh); in nfnlmsg_res_id() local164 return ntohs(nfg->res_id); in nfnlmsg_res_id()176 struct nfgenmsg *nfg; in nfnlmsg_append() local178 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()
53 struct nfgenmsg *nfg = mnl_nlmsg_get_payload(nlh); in nfexp_nlmsg_parse() local59 exp->expected.orig.l3protonum = nfg->nfgen_family; in nfexp_nlmsg_parse()67 exp->mask.orig.l3protonum = nfg->nfgen_family; in nfexp_nlmsg_parse()75 exp->master.orig.l3protonum = nfg->nfgen_family; in nfexp_nlmsg_parse()
130 const struct nfgenmsg *nfg = NULL; in netfilter_read_linux() local141 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() local266 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()
44 struct nfgenmsg *nfg = NLMSG_DATA(&req->nlh); in __build_filter_dump() local45 nfg->nfgen_family = filter_dump->l3num; in __build_filter_dump()
446 struct nfgenmsg *nfg = (void *)nlh + sizeof(*nlh); in nfnl_fill_hdr() local448 nlh->nlmsg_len = NLMSG_LENGTH(len+sizeof(*nfg)); in nfnl_fill_hdr()463 nfg->nfgen_family = family; in nfnl_fill_hdr()464 nfg->version = NFNETLINK_V0; in nfnl_fill_hdr()465 nfg->res_id = htons(res_id); in nfnl_fill_hdr()
2440 struct nfgenmsg *nfg = mnl_nlmsg_put_extra_header(nlh, sizeof(*nfg)); in nft_compatible_revision() local2441 nfg->nfgen_family = AF_INET; in nft_compatible_revision()2442 nfg->version = NFNETLINK_V0; in nft_compatible_revision()2443 nfg->res_id = 0; in nft_compatible_revision()