net/netfilter/xt_NETMAP.c
Source file repositories/reference/linux-study-clean/net/netfilter/xt_NETMAP.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/xt_NETMAP.c- Extension
.c- Size
- 4915 bytes
- Lines
- 170
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/ip.hlinux/kernel.hlinux/module.hlinux/netdevice.hlinux/ipv6.hlinux/netfilter.hlinux/netfilter_ipv4.hlinux/netfilter_ipv6.hlinux/netfilter/x_tables.hnet/netfilter/nf_nat.h
Detected Declarations
function Copyrightfunction netmap_tg6_checkentryfunction netmap_tg_destroyfunction netmap_tg4function netmap_tg4_checkfunction netmap_tg_initfunction netmap_tg_exitmodule init netmap_tg_init
Annotated Snippet
module_init(netmap_tg_init);
module_exit(netmap_tg_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Xtables: 1:1 NAT mapping of subnets");
MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
MODULE_ALIAS("ip6t_NETMAP");
MODULE_ALIAS("ipt_NETMAP");
Annotation
- Immediate include surface: `linux/ip.h`, `linux/kernel.h`, `linux/module.h`, `linux/netdevice.h`, `linux/ipv6.h`, `linux/netfilter.h`, `linux/netfilter_ipv4.h`, `linux/netfilter_ipv6.h`.
- Detected declarations: `function Copyright`, `function netmap_tg6_checkentry`, `function netmap_tg_destroy`, `function netmap_tg4`, `function netmap_tg4_check`, `function netmap_tg_init`, `function netmap_tg_exit`, `module init netmap_tg_init`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
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.