include/net/amt.h
Source file repositories/reference/linux-study-clean/include/net/amt.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/amt.h- Extension
.h- Size
- 8543 bytes
- Lines
- 409
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/siphash.hlinux/jhash.hlinux/netdevice.hnet/gro_cells.hnet/rtnetlink.h
Detected Declarations
struct amt_headerstruct amt_header_discoverystruct amt_header_advertisementstruct amt_header_requeststruct amt_header_membership_querystruct amt_header_membership_updatestruct amt_header_mcast_datastruct amt_headersstruct amt_gw_headersstruct amt_relay_headersstruct amt_skb_cbstruct amt_tunnel_liststruct amt_source_nodestruct amt_group_nodestruct amt_eventsstruct amt_devenum amt_msg_typeenum amt_opsenum amt_filterenum amt_actenum amt_statusenum amt_eventenum amt_source_statusfunction amt_gmi
Annotated Snippet
struct amt_header {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u8 type:4,
version:4;
#elif defined(__BIG_ENDIAN_BITFIELD)
u8 version:4,
type:4;
#else
#error "Please fix <asm/byteorder.h>"
#endif
} __packed;
struct amt_header_discovery {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u32 type:4,
version:4,
reserved:24;
#elif defined(__BIG_ENDIAN_BITFIELD)
u32 version:4,
type:4,
reserved:24;
#else
#error "Please fix <asm/byteorder.h>"
#endif
__be32 nonce;
} __packed;
struct amt_header_advertisement {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u32 type:4,
version:4,
reserved:24;
#elif defined(__BIG_ENDIAN_BITFIELD)
u32 version:4,
type:4,
reserved:24;
#else
#error "Please fix <asm/byteorder.h>"
#endif
__be32 nonce;
__be32 ip4;
} __packed;
struct amt_header_request {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u32 type:4,
version:4,
reserved1:7,
p:1,
reserved2:16;
#elif defined(__BIG_ENDIAN_BITFIELD)
u32 version:4,
type:4,
p:1,
reserved1:7,
reserved2:16;
#else
#error "Please fix <asm/byteorder.h>"
#endif
__be32 nonce;
} __packed;
struct amt_header_membership_query {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u64 type:4,
version:4,
reserved:6,
l:1,
g:1,
response_mac:48;
#elif defined(__BIG_ENDIAN_BITFIELD)
u64 version:4,
type:4,
g:1,
l:1,
reserved:6,
response_mac:48;
#else
#error "Please fix <asm/byteorder.h>"
#endif
__be32 nonce;
} __packed;
struct amt_header_membership_update {
#if defined(__LITTLE_ENDIAN_BITFIELD)
u64 type:4,
version:4,
reserved:8,
response_mac:48;
#elif defined(__BIG_ENDIAN_BITFIELD)
Annotation
- Immediate include surface: `linux/siphash.h`, `linux/jhash.h`, `linux/netdevice.h`, `net/gro_cells.h`, `net/rtnetlink.h`.
- Detected declarations: `struct amt_header`, `struct amt_header_discovery`, `struct amt_header_advertisement`, `struct amt_header_request`, `struct amt_header_membership_query`, `struct amt_header_membership_update`, `struct amt_header_mcast_data`, `struct amt_headers`, `struct amt_gw_headers`, `struct amt_relay_headers`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: source 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.