net/ipv6/esp6.c
Source file repositories/reference/linux-study-clean/net/ipv6/esp6.c
File Facts
- System
- Linux kernel
- Corpus path
net/ipv6/esp6.c- Extension
.c- Size
- 29134 bytes
- Lines
- 1267
- 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.
- 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/aead.hcrypto/authenc.hlinux/err.hlinux/module.hnet/ip.hnet/xfrm.hnet/esp.hlinux/scatterlist.hlinux/kernel.hlinux/pfkeyv2.hlinux/random.hlinux/slab.hlinux/spinlock.hnet/ip6_checksum.hnet/ip6_route.hnet/icmp.hnet/ipv6.hnet/protocol.hnet/udp.hlinux/icmpv6.hnet/tcp.hnet/espintcp.hnet/inet6_hashtables.hlinux/skbuff_ref.hlinux/highmem.h
Detected Declarations
struct esp_skb_cbstruct esp_output_extrafunction esp_ssg_unreffunction esp_output_tcp_finishfunction esp_output_tcp_encap_cbfunction esp_output_tail_tcpfunction esp_output_tail_tcpfunction esp_output_encap_csumfunction esp_output_donefunction esp_restore_headerfunction esp_output_restore_headerfunction esp_output_done_esnfunction esp6_output_encapfunction esp6_output_headfunction esp6_output_tailfunction esp6_outputfunction esp_remove_trailerfunction esp6_input_done2function esp_input_donefunction esp_input_restore_headerfunction esp_input_set_headerfunction esp_input_done_esnfunction esp6_inputfunction esp6_errfunction esp6_destroyfunction esp_init_aeadfunction esp_init_authencfunction esp6_init_statefunction esp6_rcv_cbfunction esp6_initfunction esp6_finimodule init esp6_initexport esp6_output_headexport esp6_output_tailexport esp6_input_done2
Annotated Snippet
module_init(esp6_init);
module_exit(esp6_fini);
MODULE_DESCRIPTION("IPv6 ESP transformation helpers");
MODULE_LICENSE("GPL");
MODULE_ALIAS_XFRM_TYPE(AF_INET6, XFRM_PROTO_ESP);
Annotation
- Immediate include surface: `crypto/aead.h`, `crypto/authenc.h`, `linux/err.h`, `linux/module.h`, `net/ip.h`, `net/xfrm.h`, `net/esp.h`, `linux/scatterlist.h`.
- Detected declarations: `struct esp_skb_cb`, `struct esp_output_extra`, `function esp_ssg_unref`, `function esp_output_tcp_finish`, `function esp_output_tcp_encap_cb`, `function esp_output_tail_tcp`, `function esp_output_tail_tcp`, `function esp_output_encap_csum`, `function esp_output_done`, `function esp_restore_header`.
- 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.