Home
last modified time | relevance | path

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

/Linux-v4.19/net/netfilter/
Dnf_conntrack_netlink.c514 struct nfgenmsg *nfmsg; in ctnetlink_fill_info() local
519 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnetlink_fill_info()
523 nfmsg = nlmsg_data(nlh); in ctnetlink_fill_info()
524 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_fill_info()
525 nfmsg->version = NFNETLINK_V0; in ctnetlink_fill_info()
526 nfmsg->res_id = 0; in ctnetlink_fill_info()
681 struct nfgenmsg *nfmsg; in ctnetlink_conntrack_event() local
711 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags); in ctnetlink_conntrack_event()
715 nfmsg = nlmsg_data(nlh); in ctnetlink_conntrack_event()
716 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_conntrack_event()
[all …]
Dnfnetlink_cttimeout.c167 struct nfgenmsg *nfmsg; in ctnl_timeout_fill_info() local
172 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnl_timeout_fill_info()
176 nfmsg = nlmsg_data(nlh); in ctnl_timeout_fill_info()
177 nfmsg->nfgen_family = AF_UNSPEC; in ctnl_timeout_fill_info()
178 nfmsg->version = NFNETLINK_V0; in ctnl_timeout_fill_info()
179 nfmsg->res_id = 0; in ctnl_timeout_fill_info()
398 struct nfgenmsg *nfmsg; in cttimeout_default_fill_info() local
402 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in cttimeout_default_fill_info()
406 nfmsg = nlmsg_data(nlh); in cttimeout_default_fill_info()
407 nfmsg->nfgen_family = AF_UNSPEC; in cttimeout_default_fill_info()
[all …]
Dnf_tables_trace.c189 struct nfgenmsg *nfmsg; in nft_trace_notify() local
229 nfmsg = nlmsg_data(nlh); in nft_trace_notify()
230 nfmsg->nfgen_family = info->basechain->type->family; in nft_trace_notify()
231 nfmsg->version = NFNETLINK_V0; in nft_trace_notify()
232 nfmsg->res_id = 0; in nft_trace_notify()
Dnf_tables_api.c532 struct nfgenmsg *nfmsg; in nf_tables_fill_table_info() local
539 nfmsg = nlmsg_data(nlh); in nf_tables_fill_table_info()
540 nfmsg->nfgen_family = family; in nf_tables_fill_table_info()
541 nfmsg->version = NFNETLINK_V0; in nf_tables_fill_table_info()
542 nfmsg->res_id = htons(net->nft.base_seq & 0xffff); in nf_tables_fill_table_info()
589 const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in nf_tables_dump_tables() local
593 int family = nfmsg->nfgen_family; in nf_tables_dump_tables()
649 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_gettable() local
653 int family = nfmsg->nfgen_family; in nf_tables_gettable()
806 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_newtable() local
[all …]
Dnft_compat.c587 struct nfgenmsg *nfmsg; in nfnl_compat_fill_info() local
591 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_compat_fill_info()
595 nfmsg = nlmsg_data(nlh); in nfnl_compat_fill_info()
596 nfmsg->nfgen_family = family; in nfnl_compat_fill_info()
597 nfmsg->version = NFNETLINK_V0; in nfnl_compat_fill_info()
598 nfmsg->res_id = 0; in nfnl_compat_fill_info()
620 struct nfgenmsg *nfmsg; in nfnl_compat_get_rcu() local
635 nfmsg = nlmsg_data(nlh); in nfnl_compat_get_rcu()
637 switch(nfmsg->nfgen_family) { in nfnl_compat_get_rcu()
652 nfmsg->nfgen_family); in nfnl_compat_get_rcu()
[all …]
Dnfnetlink_acct.c138 struct nfgenmsg *nfmsg; in nfnl_acct_fill_info() local
144 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_acct_fill_info()
148 nfmsg = nlmsg_data(nlh); in nfnl_acct_fill_info()
149 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_acct_fill_info()
150 nfmsg->version = NFNETLINK_V0; in nfnl_acct_fill_info()
151 nfmsg->res_id = 0; in nfnl_acct_fill_info()
Dnfnetlink_queue.c390 struct nfgenmsg *nfmsg; in nfqnl_build_packet_message() local
484 nfmsg = nlmsg_data(nlh); in nfqnl_build_packet_message()
485 nfmsg->nfgen_family = entry->state.pf; in nfqnl_build_packet_message()
486 nfmsg->version = NFNETLINK_V0; in nfqnl_build_packet_message()
487 nfmsg->res_id = htons(queue->queue_num); in nfqnl_build_packet_message()
1070 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict_batch() local
1076 u16 queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict_batch()
1176 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict() local
1177 u_int16_t queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict()
1262 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_config() local
[all …]
Dnfnetlink_cthelper.c530 struct nfgenmsg *nfmsg; in nfnl_cthelper_fill_info() local
535 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_cthelper_fill_info()
539 nfmsg = nlmsg_data(nlh); in nfnl_cthelper_fill_info()
540 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_cthelper_fill_info()
541 nfmsg->version = NFNETLINK_V0; in nfnl_cthelper_fill_info()
542 nfmsg->res_id = 0; in nfnl_cthelper_fill_info()
Dnfnetlink_log.c408 struct nfgenmsg *nfmsg; in __build_packet_message() local
418 nfmsg = nlmsg_data(nlh); in __build_packet_message()
419 nfmsg->nfgen_family = pf; in __build_packet_message()
420 nfmsg->version = NFNETLINK_V0; in __build_packet_message()
421 nfmsg->res_id = htons(inst->group_num); in __build_packet_message()
823 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfulnl_recv_config() local
824 u_int16_t group_num = ntohs(nfmsg->res_id); in nfulnl_recv_config()
832 u_int8_t pf = nfmsg->nfgen_family; in nfulnl_recv_config()
/Linux-v4.19/net/netfilter/ipset/
Dip_set_core.c789 struct nfgenmsg *nfmsg; in start_msg() local
792 sizeof(*nfmsg), flags); in start_msg()
796 nfmsg = nlmsg_data(nlh); in start_msg()
797 nfmsg->nfgen_family = NFPROTO_IPV4; in start_msg()
798 nfmsg->version = NFNETLINK_V0; in start_msg()
799 nfmsg->res_id = 0; in start_msg()