Home
last modified time | relevance | path

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

/linux-4.1.27/net/netfilter/
Dnf_conntrack_netlink.c462 struct nfgenmsg *nfmsg; in ctnetlink_fill_info() local
467 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnetlink_fill_info()
471 nfmsg = nlmsg_data(nlh); in ctnetlink_fill_info()
472 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_fill_info()
473 nfmsg->version = NFNETLINK_V0; in ctnetlink_fill_info()
474 nfmsg->res_id = 0; in ctnetlink_fill_info()
614 struct nfgenmsg *nfmsg; in ctnetlink_conntrack_event() local
648 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags); in ctnetlink_conntrack_event()
652 nfmsg = nlmsg_data(nlh); in ctnetlink_conntrack_event()
653 nfmsg->nfgen_family = nf_ct_l3num(ct); in ctnetlink_conntrack_event()
[all …]
Dnfnetlink_cttimeout.c163 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()
390 struct nfgenmsg *nfmsg; in cttimeout_default_fill_info() local
394 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in cttimeout_default_fill_info()
398 nfmsg = nlmsg_data(nlh); in cttimeout_default_fill_info()
399 nfmsg->nfgen_family = AF_UNSPEC; in cttimeout_default_fill_info()
[all …]
Dnf_tables_api.c409 struct nfgenmsg *nfmsg; in nf_tables_fill_table_info() local
416 nfmsg = nlmsg_data(nlh); in nf_tables_fill_table_info()
417 nfmsg->nfgen_family = family; in nf_tables_fill_table_info()
418 nfmsg->version = NFNETLINK_V0; in nf_tables_fill_table_info()
419 nfmsg->res_id = htons(net->nft.base_seq & 0xffff); in nf_tables_fill_table_info()
468 const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in nf_tables_dump_tables() local
473 int family = nfmsg->nfgen_family; in nf_tables_dump_tables()
511 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_gettable() local
516 int family = nfmsg->nfgen_family; in nf_tables_gettable()
642 const struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nf_tables_newtable() local
[all …]
Dnft_compat.c493 struct nfgenmsg *nfmsg; in nfnl_compat_fill_info() local
497 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_compat_fill_info()
501 nfmsg = nlmsg_data(nlh); in nfnl_compat_fill_info()
502 nfmsg->nfgen_family = family; in nfnl_compat_fill_info()
503 nfmsg->version = NFNETLINK_V0; in nfnl_compat_fill_info()
504 nfmsg->res_id = 0; in nfnl_compat_fill_info()
525 struct nfgenmsg *nfmsg; in nfnl_compat_get() local
540 nfmsg = nlmsg_data(nlh); in nfnl_compat_get()
542 switch(nfmsg->nfgen_family) { in nfnl_compat_get()
557 nfmsg->nfgen_family); in nfnl_compat_get()
[all …]
Dnfnetlink_acct.c136 struct nfgenmsg *nfmsg; in nfnl_acct_fill_info() local
142 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_acct_fill_info()
146 nfmsg = nlmsg_data(nlh); in nfnl_acct_fill_info()
147 nfmsg->nfgen_family = AF_UNSPEC; in nfnl_acct_fill_info()
148 nfmsg->version = NFNETLINK_V0; in nfnl_acct_fill_info()
149 nfmsg->res_id = 0; in nfnl_acct_fill_info()
Dnfnetlink_cthelper.c415 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()
Dnfnetlink_queue_core.c293 struct nfgenmsg *nfmsg; in nfqnl_build_packet_message() local
370 nfmsg = nlmsg_data(nlh); in nfqnl_build_packet_message()
371 nfmsg->nfgen_family = entry->state.pf; in nfqnl_build_packet_message()
372 nfmsg->version = NFNETLINK_V0; in nfqnl_build_packet_message()
373 nfmsg->res_id = htons(queue->queue_num); in nfqnl_build_packet_message()
933 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict_batch() local
939 u16 queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict_batch()
983 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict() local
984 u_int16_t queue_num = ntohs(nfmsg->res_id); in nfqnl_recv_verdict()
1064 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_config() local
[all …]
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()
803 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfulnl_recv_config() local
804 u_int16_t group_num = ntohs(nfmsg->res_id); in nfulnl_recv_config()
812 u_int8_t pf = nfmsg->nfgen_family; in nfulnl_recv_config()
/linux-4.1.27/net/netfilter/ipset/
Dip_set_core.c724 struct nfgenmsg *nfmsg; in start_msg() local
727 sizeof(*nfmsg), flags); in start_msg()
731 nfmsg = nlmsg_data(nlh); in start_msg()
732 nfmsg->nfgen_family = NFPROTO_IPV4; in start_msg()
733 nfmsg->version = NFNETLINK_V0; in start_msg()
734 nfmsg->res_id = 0; in start_msg()