net/netfilter/nft_nat.c
Source file repositories/reference/linux-study-clean/net/netfilter/nft_nat.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nft_nat.c- Extension
.c- Size
- 10281 bytes
- Lines
- 405
- 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/module.hlinux/init.hlinux/skbuff.hlinux/ip.hlinux/string.hlinux/netlink.hlinux/netfilter.hlinux/netfilter_ipv4.hlinux/netfilter/nfnetlink.hlinux/netfilter/nf_tables.hnet/netfilter/nf_conntrack.hnet/netfilter/nf_nat.hnet/netfilter/nf_tables.hnet/ip.h
Detected Declarations
struct nft_natfunction nft_nat_setup_addrfunction nft_nat_setup_protofunction nft_nat_setup_netmapfunction nft_nat_evalfunction nft_nat_validatefunction nft_nat_initfunction nft_nat_dumpfunction nft_nat_destroyfunction nft_nat_inet_evalfunction nft_nat_inet_module_initfunction nft_nat_inet_module_exitfunction nft_nat_inet_module_initfunction nft_nat_inet_module_exitfunction nft_nat_module_exitmodule init nft_nat_module_init
Annotated Snippet
module_init(nft_nat_module_init);
module_exit(nft_nat_module_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>");
MODULE_ALIAS_NFT_EXPR("nat");
MODULE_DESCRIPTION("Network Address Translation support");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/skbuff.h`, `linux/ip.h`, `linux/string.h`, `linux/netlink.h`, `linux/netfilter.h`, `linux/netfilter_ipv4.h`.
- Detected declarations: `struct nft_nat`, `function nft_nat_setup_addr`, `function nft_nat_setup_proto`, `function nft_nat_setup_netmap`, `function nft_nat_eval`, `function nft_nat_validate`, `function nft_nat_init`, `function nft_nat_dump`, `function nft_nat_destroy`, `function nft_nat_inet_eval`.
- 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.