net/netfilter/nf_nat_sip.c
Source file repositories/reference/linux-study-clean/net/netfilter/nf_nat_sip.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nf_nat_sip.c- Extension
.c- Size
- 21543 bytes
- Lines
- 694
- 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/module.hlinux/skbuff.hlinux/inet.hlinux/udp.hlinux/tcp.hnet/netfilter/nf_nat.hnet/netfilter/nf_nat_helper.hnet/netfilter/nf_conntrack_core.hnet/netfilter/nf_conntrack_helper.hnet/netfilter/nf_conntrack_expect.hnet/netfilter/nf_conntrack_seqadj.hlinux/netfilter/nf_conntrack_sip.h
Detected Declarations
function mangle_packetfunction sip_sprintf_addrfunction sip_sprintf_addr_portfunction map_addrfunction map_sip_addrfunction nf_nat_sipfunction nf_nat_sip_seq_adjustfunction nf_nat_sip_expectedfunction hlist_for_each_entryfunction nf_inet_addr_cmpfunction nf_nat_sip_expectfunction mangle_content_lenfunction mangle_sdp_packetfunction nf_nat_sdp_addrfunction nf_nat_sdp_portfunction nf_nat_sdp_sessionfunction nf_nat_sdp_mediafunction nf_nat_sip_finifunction nf_nat_sip_initmodule init nf_nat_sip_init
Annotated Snippet
module_init(nf_nat_sip_init);
module_exit(nf_nat_sip_fini);
Annotation
- Immediate include surface: `linux/module.h`, `linux/skbuff.h`, `linux/inet.h`, `linux/udp.h`, `linux/tcp.h`, `net/netfilter/nf_nat.h`, `net/netfilter/nf_nat_helper.h`, `net/netfilter/nf_conntrack_core.h`.
- Detected declarations: `function mangle_packet`, `function sip_sprintf_addr`, `function sip_sprintf_addr_port`, `function map_addr`, `function map_sip_addr`, `function nf_nat_sip`, `function nf_nat_sip_seq_adjust`, `function nf_nat_sip_expected`, `function hlist_for_each_entry`, `function nf_inet_addr_cmp`.
- 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.