/linux-4.4.14/net/netfilter/ |
D | nf_conntrack_netlink.c | 477 struct nfgenmsg *nfmsg; in ctnetlink_fill_info() local 482 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnetlink_fill_info() 486 nfmsg = nlmsg_data(nlh); in ctnetlink_fill_info() 487 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_fill_info() 488 nfmsg->version = NFNETLINK_V0; in ctnetlink_fill_info() 489 nfmsg->res_id = 0; in ctnetlink_fill_info() 638 struct nfgenmsg *nfmsg; in ctnetlink_conntrack_event() local 672 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags); in ctnetlink_conntrack_event() 676 nfmsg = nlmsg_data(nlh); in ctnetlink_conntrack_event() 677 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 168 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnl_timeout_fill_info() 172 nfmsg = nlmsg_data(nlh); in ctnl_timeout_fill_info() 173 nfmsg->nfgen_family = AF_UNSPEC; in ctnl_timeout_fill_info() 174 nfmsg->version = NFNETLINK_V0; in ctnl_timeout_fill_info() 175 nfmsg->res_id = 0; in ctnl_timeout_fill_info() 419 struct nfgenmsg *nfmsg; in cttimeout_default_fill_info() local 423 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in cttimeout_default_fill_info() 427 nfmsg = nlmsg_data(nlh); in cttimeout_default_fill_info() 428 nfmsg->nfgen_family = AF_UNSPEC; in cttimeout_default_fill_info() [all …]
|
D | nf_tables_api.c | 447 struct nfgenmsg *nfmsg; in nf_tables_fill_table_info() local 454 nfmsg = nlmsg_data(nlh); in nf_tables_fill_table_info() 455 nfmsg->nfgen_family = family; in nf_tables_fill_table_info() 456 nfmsg->version = NFNETLINK_V0; in nf_tables_fill_table_info() 457 nfmsg->res_id = htons(net->nft.base_seq & 0xffff); in nf_tables_fill_table_info() 506 const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in nf_tables_dump_tables() local 511 int family = nfmsg->nfgen_family; in nf_tables_dump_tables() 549 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_gettable() local 554 int family = nfmsg->nfgen_family; in nf_tables_gettable() 680 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_newtable() local [all …]
|
D | nft_compat.c | 495 struct nfgenmsg *nfmsg; in nfnl_compat_fill_info() local 499 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_compat_fill_info() 503 nfmsg = nlmsg_data(nlh); in nfnl_compat_fill_info() 504 nfmsg->nfgen_family = family; in nfnl_compat_fill_info() 505 nfmsg->version = NFNETLINK_V0; in nfnl_compat_fill_info() 506 nfmsg->res_id = 0; in nfnl_compat_fill_info() 527 struct nfgenmsg *nfmsg; in nfnl_compat_get() local 542 nfmsg = nlmsg_data(nlh); in nfnl_compat_get() 544 switch(nfmsg->nfgen_family) { in nfnl_compat_get() 559 nfmsg->nfgen_family); in nfnl_compat_get() [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_cthelper.c | 415 struct nfgenmsg *nfmsg; in nfnl_cthelper_fill_info() local 420 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_cthelper_fill_info() 424 nfmsg = nlmsg_data(nlh); in nfnl_cthelper_fill_info() 425 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_cthelper_fill_info() 426 nfmsg->version = NFNETLINK_V0; in nfnl_cthelper_fill_info() 427 nfmsg->res_id = 0; in nfnl_cthelper_fill_info()
|
D | nfnetlink_queue.c | 310 struct nfgenmsg *nfmsg; in nfqnl_build_packet_message() local 404 nfmsg = nlmsg_data(nlh); in nfqnl_build_packet_message() 405 nfmsg->nfgen_family = entry->state.pf; in nfqnl_build_packet_message() 406 nfmsg->version = NFNETLINK_V0; in nfqnl_build_packet_message() 407 nfmsg->res_id = htons(queue->queue_num); in nfqnl_build_packet_message() 965 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict_batch() local 971 u16 queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict_batch() 1037 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict() local 1038 u_int16_t queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict() 1118 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_config() local [all …]
|
D | nfnetlink_log.c | 411 struct nfgenmsg *nfmsg; in __build_packet_message() local 421 nfmsg = nlmsg_data(nlh); in __build_packet_message() 422 nfmsg->nfgen_family = pf; in __build_packet_message() 423 nfmsg->version = NFNETLINK_V0; in __build_packet_message() 424 nfmsg->res_id = htons(inst->group_num); in __build_packet_message() 821 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfulnl_recv_config() local 822 u_int16_t group_num = ntohs(nfmsg->res_id); in nfulnl_recv_config() 831 u_int8_t pf = nfmsg->nfgen_family; in nfulnl_recv_config()
|
/linux-4.4.14/net/netfilter/ipset/ |
D | ip_set_core.c | 750 struct nfgenmsg *nfmsg; in start_msg() local 753 sizeof(*nfmsg), flags); in start_msg() 757 nfmsg = nlmsg_data(nlh); in start_msg() 758 nfmsg->nfgen_family = NFPROTO_IPV4; in start_msg() 759 nfmsg->version = NFNETLINK_V0; in start_msg() 760 nfmsg->res_id = 0; in start_msg()
|