net/ipv4/netfilter/nf_defrag_ipv4.c
Source file repositories/reference/linux-study-clean/net/ipv4/netfilter/nf_defrag_ipv4.c
File Facts
- System
- Linux kernel
- Corpus path
net/ipv4/netfilter/nf_defrag_ipv4.c- Extension
.c- Size
- 4420 bytes
- Lines
- 190
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/ip.hlinux/netfilter.hlinux/module.hlinux/rcupdate.hlinux/skbuff.hnet/netns/generic.hnet/route.hnet/ip.hlinux/netfilter_bridge.hlinux/netfilter_ipv4.hnet/netfilter/ipv4/nf_defrag_ipv4.hnet/netfilter/nf_conntrack.hnet/netfilter/nf_conntrack_zones.h
Detected Declarations
function nf_ct_ipv4_gather_fragsfunction nf_ct_defrag_userfunction ipv4_conntrack_defragfunction defrag4_net_exitfunction nf_defrag_initfunction nf_defrag_finifunction nf_defrag_ipv4_enablefunction nf_defrag_ipv4_disablemodule init nf_defrag_initexport nf_defrag_ipv4_enableexport nf_defrag_ipv4_disable
Annotated Snippet
module_init(nf_defrag_init);
module_exit(nf_defrag_fini);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("IPv4 defragmentation support");
Annotation
- Immediate include surface: `linux/types.h`, `linux/ip.h`, `linux/netfilter.h`, `linux/module.h`, `linux/rcupdate.h`, `linux/skbuff.h`, `net/netns/generic.h`, `net/route.h`.
- Detected declarations: `function nf_ct_ipv4_gather_frags`, `function nf_ct_defrag_user`, `function ipv4_conntrack_defrag`, `function defrag4_net_exit`, `function nf_defrag_init`, `function nf_defrag_fini`, `function nf_defrag_ipv4_enable`, `function nf_defrag_ipv4_disable`, `module init nf_defrag_init`, `export nf_defrag_ipv4_enable`.
- 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.