net/ipv4/ah4.c
Source file repositories/reference/linux-study-clean/net/ipv4/ah4.c
File Facts
- System
- Linux kernel
- Corpus path
net/ipv4/ah4.c- Extension
.c- Size
- 14313 bytes
- Lines
- 613
- 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.
- 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
crypto/hash.hcrypto/utils.hlinux/err.hlinux/module.hlinux/slab.hnet/ip.hnet/xfrm.hnet/ah.hlinux/crypto.hlinux/pfkeyv2.hlinux/scatterlist.hnet/icmp.hnet/protocol.h
Detected Declarations
struct ah_skb_cbfunction ip_clear_mutable_optionsfunction ah_output_donefunction ah_outputfunction ah_input_donefunction ah_inputfunction ah4_errfunction ah_init_statefunction ah_destroyfunction ah4_rcv_cbfunction ah4_initfunction ah4_finimodule init ah4_init
Annotated Snippet
module_init(ah4_init);
module_exit(ah4_fini);
MODULE_DESCRIPTION("IPv4 AH transformation library");
MODULE_LICENSE("GPL");
MODULE_ALIAS_XFRM_TYPE(AF_INET, XFRM_PROTO_AH);
Annotation
- Immediate include surface: `crypto/hash.h`, `crypto/utils.h`, `linux/err.h`, `linux/module.h`, `linux/slab.h`, `net/ip.h`, `net/xfrm.h`, `net/ah.h`.
- Detected declarations: `struct ah_skb_cb`, `function ip_clear_mutable_options`, `function ah_output_done`, `function ah_output`, `function ah_input_done`, `function ah_input`, `function ah4_err`, `function ah_init_state`, `function ah_destroy`, `function ah4_rcv_cb`.
- 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.