Home
last modified time | relevance | path

Searched refs:nfmsg (Results 1 – 10 of 10) sorted by relevance

/Linux-v5.4/net/netfilter/
Dnf_conntrack_netlink.c515 struct nfgenmsg *nfmsg; in ctnetlink_fill_info() local
520 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnetlink_fill_info()
524 nfmsg = nlmsg_data(nlh); in ctnetlink_fill_info()
525 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_fill_info()
526 nfmsg->version = NFNETLINK_V0; in ctnetlink_fill_info()
527 nfmsg->res_id = 0; in ctnetlink_fill_info()
685 struct nfgenmsg *nfmsg; in ctnetlink_conntrack_event() local
715 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags); in ctnetlink_conntrack_event()
719 nfmsg = nlmsg_data(nlh); in ctnetlink_conntrack_event()
720 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_conntrack_event()
[all …]
Dnfnetlink_cttimeout.c163 struct nfgenmsg *nfmsg; in ctnl_timeout_fill_info() local
170 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnl_timeout_fill_info()
174 nfmsg = nlmsg_data(nlh); in ctnl_timeout_fill_info()
175 nfmsg->nfgen_family = AF_UNSPEC; in ctnl_timeout_fill_info()
176 nfmsg->version = NFNETLINK_V0; in ctnl_timeout_fill_info()
177 nfmsg->res_id = 0; in ctnl_timeout_fill_info()
385 struct nfgenmsg *nfmsg; in cttimeout_default_fill_info() local
391 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in cttimeout_default_fill_info()
395 nfmsg = nlmsg_data(nlh); in cttimeout_default_fill_info()
396 nfmsg->nfgen_family = AF_UNSPEC; in cttimeout_default_fill_info()
[all …]
Dnf_tables_trace.c186 struct nfgenmsg *nfmsg; in nft_trace_notify() local
226 nfmsg = nlmsg_data(nlh); in nft_trace_notify()
227 nfmsg->nfgen_family = info->basechain->type->family; in nft_trace_notify()
228 nfmsg->version = NFNETLINK_V0; in nft_trace_notify()
229 nfmsg->res_id = 0; in nft_trace_notify()
Dnf_tables_api.c575 struct nfgenmsg *nfmsg; in nf_tables_fill_table_info() local
582 nfmsg = nlmsg_data(nlh); in nf_tables_fill_table_info()
583 nfmsg->nfgen_family = family; in nf_tables_fill_table_info()
584 nfmsg->version = NFNETLINK_V0; in nf_tables_fill_table_info()
585 nfmsg->res_id = htons(net->nft.base_seq & 0xffff); in nf_tables_fill_table_info()
632 const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in nf_tables_dump_tables() local
636 int family = nfmsg->nfgen_family; in nf_tables_dump_tables()
692 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_gettable() local
696 int family = nfmsg->nfgen_family; in nf_tables_gettable()
877 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_newtable() local
[all …]
Dnft_compat.c575 struct nfgenmsg *nfmsg; in nfnl_compat_fill_info() local
579 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_compat_fill_info()
583 nfmsg = nlmsg_data(nlh); in nfnl_compat_fill_info()
584 nfmsg->nfgen_family = family; in nfnl_compat_fill_info()
585 nfmsg->version = NFNETLINK_V0; in nfnl_compat_fill_info()
586 nfmsg->res_id = 0; in nfnl_compat_fill_info()
608 struct nfgenmsg *nfmsg; in nfnl_compat_get_rcu() local
623 nfmsg = nlmsg_data(nlh); in nfnl_compat_get_rcu()
625 switch(nfmsg->nfgen_family) { in nfnl_compat_get_rcu()
640 nfmsg->nfgen_family); in nfnl_compat_get_rcu()
[all …]
Dnfnetlink_acct.c135 struct nfgenmsg *nfmsg; in nfnl_acct_fill_info() local
141 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_acct_fill_info()
145 nfmsg = nlmsg_data(nlh); in nfnl_acct_fill_info()
146 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_acct_fill_info()
147 nfmsg->version = NFNETLINK_V0; in nfnl_acct_fill_info()
148 nfmsg->res_id = 0; in nfnl_acct_fill_info()
Dnfnetlink_queue.c386 struct nfgenmsg *nfmsg; in nfqnl_build_packet_message() local
480 nfmsg = nlmsg_data(nlh); in nfqnl_build_packet_message()
481 nfmsg->nfgen_family = entry->state.pf; in nfqnl_build_packet_message()
482 nfmsg->version = NFNETLINK_V0; in nfqnl_build_packet_message()
483 nfmsg->res_id = htons(queue->queue_num); in nfqnl_build_packet_message()
1065 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict_batch() local
1071 u16 queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict_batch()
1173 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict() local
1174 u_int16_t queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict()
1259 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_config() local
[all …]
Dnfnetlink_cthelper.c528 struct nfgenmsg *nfmsg; in nfnl_cthelper_fill_info() local
533 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_cthelper_fill_info()
537 nfmsg = nlmsg_data(nlh); in nfnl_cthelper_fill_info()
538 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_cthelper_fill_info()
539 nfmsg->version = NFNETLINK_V0; in nfnl_cthelper_fill_info()
540 nfmsg->res_id = 0; in nfnl_cthelper_fill_info()
Dnfnetlink_log.c456 struct nfgenmsg *nfmsg; in __build_packet_message() local
466 nfmsg = nlmsg_data(nlh); in __build_packet_message()
467 nfmsg->nfgen_family = pf; in __build_packet_message()
468 nfmsg->version = NFNETLINK_V0; in __build_packet_message()
469 nfmsg->res_id = htons(inst->group_num); in __build_packet_message()
877 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfulnl_recv_config() local
878 u_int16_t group_num = ntohs(nfmsg->res_id); in nfulnl_recv_config()
886 u_int8_t pf = nfmsg->nfgen_family; in nfulnl_recv_config()
/Linux-v5.4/net/netfilter/ipset/
Dip_set_core.c799 struct nfgenmsg *nfmsg; in start_msg() local
802 sizeof(*nfmsg), flags); in start_msg()
806 nfmsg = nlmsg_data(nlh); in start_msg()
807 nfmsg->nfgen_family = NFPROTO_IPV4; in start_msg()
808 nfmsg->version = NFNETLINK_V0; in start_msg()
809 nfmsg->res_id = 0; in start_msg()