net/sched/act_ct.c
Source file repositories/reference/linux-study-clean/net/sched/act_ct.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/act_ct.c- Extension
.c- Size
- 42338 bytes
- Lines
- 1711
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/init.hlinux/kernel.hlinux/skbuff.hlinux/rtnetlink.hlinux/pkt_cls.hlinux/if_tunnel.hlinux/ip.hlinux/ipv6.hlinux/rhashtable.hnet/gre.hnet/netlink.hnet/pkt_sched.hnet/pkt_cls.hnet/act_api.hnet/ip.hnet/ipv6_frag.huapi/linux/tc_act/tc_ct.hnet/tc_act/tc_ct.hnet/tc_wrapper.hnet/netfilter/nf_flow_table.hnet/netfilter/nf_conntrack.hnet/netfilter/nf_conntrack_core.hnet/netfilter/nf_conntrack_zones.hnet/netfilter/nf_conntrack_helper.hnet/netfilter/nf_conntrack_acct.hnet/netfilter/ipv6/nf_defrag_ipv6.hnet/netfilter/nf_conntrack_act_ct.hnet/netfilter/nf_conntrack_seqadj.huapi/linux/netfilter/nf_nat.h
Detected Declarations
struct zones_ht_keystruct tcf_ct_flow_tablestruct tc_ct_action_netfunction tcf_ct_flow_table_flow_action_get_nextfunction tcf_ct_add_mangle_actionfunction tcf_ct_flow_table_add_action_nat_ipv4function tcf_ct_add_ipv6_addr_mangle_actionfunction tcf_ct_flow_table_add_action_nat_ipv6function tcf_ct_flow_table_add_action_nat_tcpfunction tcf_ct_flow_table_add_action_nat_udpfunction tcf_ct_flow_table_add_action_metafunction tcf_ct_flow_table_add_action_natfunction tcf_ct_flow_table_fill_actionsfunction tcf_ct_flow_is_outdatedfunction tcf_ct_nf_getfunction tcf_ct_nf_putfunction tcf_ct_flow_table_getfunction tcf_ct_flow_table_get_reffunction tcf_ct_flow_table_cleanup_workfunction tcf_ct_flow_table_putfunction tcf_ct_flow_tc_ifidxfunction tcf_ct_flow_ct_ext_ifidx_updatefunction tcf_ct_flow_table_addfunction tcf_ct_flow_table_process_connfunction tcf_ct_flow_table_fill_tuple_ipv4function tcf_ct_flow_table_fill_tuple_ipv6function tcf_ct_flow_table_lookupfunction tcf_ct_flow_tables_initfunction tcf_ct_flow_tables_uninitfunction tcf_ct_skb_nfct_cachedfunction CTINFO2DIRfunction tcf_ct_skb_nf_familyfunction tcf_ct_ipv4_is_fragmentfunction tcf_ct_ipv6_is_fragmentfunction tcf_ct_handle_fragmentsfunction tcf_ct_params_freefunction tcf_ct_params_free_rcufunction tcf_ct_act_set_markfunction tcf_ct_act_set_labelsfunction tcf_ct_act_natfunction tcf_ct_actfunction tcf_ct_fill_params_natfunction tcf_ct_set_key_valfunction tcf_ct_fill_paramsfunction tcf_ct_initfunction tcf_ct_cleanupfunction tcf_ct_dump_key_valfunction tcf_ct_dump_nat
Annotated Snippet
module_init(ct_init_module);
module_exit(ct_cleanup_module);
MODULE_AUTHOR("Paul Blakey <paulb@mellanox.com>");
MODULE_AUTHOR("Yossi Kuperman <yossiku@mellanox.com>");
MODULE_AUTHOR("Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>");
MODULE_DESCRIPTION("Connection tracking action");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/kernel.h`, `linux/skbuff.h`, `linux/rtnetlink.h`, `linux/pkt_cls.h`, `linux/if_tunnel.h`, `linux/ip.h`.
- Detected declarations: `struct zones_ht_key`, `struct tcf_ct_flow_table`, `struct tc_ct_action_net`, `function tcf_ct_flow_table_flow_action_get_next`, `function tcf_ct_add_mangle_action`, `function tcf_ct_flow_table_add_action_nat_ipv4`, `function tcf_ct_add_ipv6_addr_mangle_action`, `function tcf_ct_flow_table_add_action_nat_ipv6`, `function tcf_ct_flow_table_add_action_nat_tcp`, `function tcf_ct_flow_table_add_action_nat_udp`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.