net/netfilter/xt_TEE.c
Source file repositories/reference/linux-study-clean/net/netfilter/xt_TEE.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/xt_TEE.c- Extension
.c- Size
- 5527 bytes
- Lines
- 232
- 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/skbuff.hlinux/route.hlinux/netfilter/x_tables.hnet/net_namespace.hnet/netns/generic.hnet/route.hnet/netfilter/ipv4/nf_dup_ipv4.hnet/netfilter/ipv6/nf_dup_ipv6.hlinux/netfilter/xt_TEE.h
Detected Declarations
struct xt_tee_privstruct tee_netfunction tee_tg4function tee_tg6function tee_netdev_eventfunction tee_tg_checkfunction tee_tg_destroyfunction tee_net_initfunction tee_tg_initfunction tee_tg_exitmodule init tee_tg_init
Annotated Snippet
module_init(tee_tg_init);
module_exit(tee_tg_exit);
MODULE_AUTHOR("Sebastian Claßen <sebastian.classen@freenet.ag>");
MODULE_AUTHOR("Jan Engelhardt <jengelh@medozas.de>");
MODULE_DESCRIPTION("Xtables: Reroute packet copy");
MODULE_LICENSE("GPL");
MODULE_ALIAS("ipt_TEE");
MODULE_ALIAS("ip6t_TEE");
Annotation
- Immediate include surface: `linux/module.h`, `linux/skbuff.h`, `linux/route.h`, `linux/netfilter/x_tables.h`, `net/net_namespace.h`, `net/netns/generic.h`, `net/route.h`, `net/netfilter/ipv4/nf_dup_ipv4.h`.
- Detected declarations: `struct xt_tee_priv`, `struct tee_net`, `function tee_tg4`, `function tee_tg6`, `function tee_netdev_event`, `function tee_tg_check`, `function tee_tg_destroy`, `function tee_net_init`, `function tee_tg_init`, `function tee_tg_exit`.
- 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.