/Linux-v5.10/net/netfilter/ |
D | nf_conntrack_netlink.c | 553 struct nfgenmsg *nfmsg; in ctnetlink_fill_info() local 560 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnetlink_fill_info() 564 nfmsg = nlmsg_data(nlh); in ctnetlink_fill_info() 565 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_fill_info() 566 nfmsg->version = NFNETLINK_V0; in ctnetlink_fill_info() 567 nfmsg->res_id = 0; in ctnetlink_fill_info() 711 struct nfgenmsg *nfmsg; in ctnetlink_conntrack_event() local 741 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags); in ctnetlink_conntrack_event() 745 nfmsg = nlmsg_data(nlh); in ctnetlink_conntrack_event() 746 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_conntrack_event() [all …]
|
D | nfnetlink_cttimeout.c | 163 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 …]
|
D | nf_tables_trace.c | 186 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()
|
D | nft_compat.c | 594 struct nfgenmsg *nfmsg; in nfnl_compat_fill_info() local 598 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_compat_fill_info() 602 nfmsg = nlmsg_data(nlh); in nfnl_compat_fill_info() 603 nfmsg->nfgen_family = family; in nfnl_compat_fill_info() 604 nfmsg->version = NFNETLINK_V0; in nfnl_compat_fill_info() 605 nfmsg->res_id = 0; in nfnl_compat_fill_info() 627 struct nfgenmsg *nfmsg; in nfnl_compat_get_rcu() local 642 nfmsg = nlmsg_data(nlh); in nfnl_compat_get_rcu() 644 switch(nfmsg->nfgen_family) { in nfnl_compat_get_rcu() 659 nfmsg->nfgen_family); in nfnl_compat_get_rcu() [all …]
|
D | nf_tables_api.c | 663 struct nfgenmsg *nfmsg; in nf_tables_fill_table_info() local 670 nfmsg = nlmsg_data(nlh); in nf_tables_fill_table_info() 671 nfmsg->nfgen_family = family; in nf_tables_fill_table_info() 672 nfmsg->version = NFNETLINK_V0; in nf_tables_fill_table_info() 673 nfmsg->res_id = htons(net->nft.base_seq & 0xffff); in nf_tables_fill_table_info() 747 const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in nf_tables_dump_tables() local 751 int family = nfmsg->nfgen_family; in nf_tables_dump_tables() 807 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_gettable() local 811 int family = nfmsg->nfgen_family; in nf_tables_gettable() 994 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_newtable() local [all …]
|
D | nfnetlink_acct.c | 135 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()
|
D | nfnetlink_queue.c | 386 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() 1057 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict_batch() local 1063 u16 queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict_batch() 1165 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict() local 1166 u_int16_t queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict() 1251 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_config() local [all …]
|
D | nfnetlink_cthelper.c | 529 struct nfgenmsg *nfmsg; in nfnl_cthelper_fill_info() local 534 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_cthelper_fill_info() 538 nfmsg = nlmsg_data(nlh); in nfnl_cthelper_fill_info() 539 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_cthelper_fill_info() 540 nfmsg->version = NFNETLINK_V0; in nfnl_cthelper_fill_info() 541 nfmsg->res_id = 0; in nfnl_cthelper_fill_info()
|
D | nfnetlink_log.c | 455 struct nfgenmsg *nfmsg; in __build_packet_message() local 465 nfmsg = nlmsg_data(nlh); in __build_packet_message() 466 nfmsg->nfgen_family = pf; in __build_packet_message() 467 nfmsg->version = NFNETLINK_V0; in __build_packet_message() 468 nfmsg->res_id = htons(inst->group_num); in __build_packet_message() 876 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfulnl_recv_config() local 877 u_int16_t group_num = ntohs(nfmsg->res_id); in nfulnl_recv_config() 885 u_int8_t pf = nfmsg->nfgen_family; in nfulnl_recv_config()
|
/Linux-v5.10/net/netfilter/ipset/ |
D | ip_set_core.c | 967 struct nfgenmsg *nfmsg; in start_msg() local 970 sizeof(*nfmsg), flags); in start_msg() 974 nfmsg = nlmsg_data(nlh); in start_msg() 975 nfmsg->nfgen_family = NFPROTO_IPV4; in start_msg() 976 nfmsg->version = NFNETLINK_V0; in start_msg() 977 nfmsg->res_id = 0; in start_msg()
|