include/net/secure_seq.h
Source file repositories/reference/linux-study-clean/include/net/secure_seq.h
File Facts
- System
- Linux kernel
- Corpus path
include/net/secure_seq.h- Extension
.h- Size
- 1212 bytes
- Lines
- 52
- 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/types.h
Detected Declarations
struct netfunction secure_tcp_seqfunction secure_tcpv6_seq
Annotated Snippet
#ifndef _NET_SECURE_SEQ
#define _NET_SECURE_SEQ
#include <linux/types.h>
struct net;
extern struct net init_net;
union tcp_seq_and_ts_off {
struct {
u32 seq;
u32 ts_off;
};
u64 hash64;
};
u64 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport);
u64 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr,
__be16 dport);
union tcp_seq_and_ts_off
secure_tcp_seq_and_ts_off(const struct net *net, __be32 saddr, __be32 daddr,
__be16 sport, __be16 dport);
static inline u32 secure_tcp_seq(__be32 saddr, __be32 daddr,
__be16 sport, __be16 dport)
{
union tcp_seq_and_ts_off ts;
ts = secure_tcp_seq_and_ts_off(&init_net, saddr, daddr,
sport, dport);
return ts.seq;
}
union tcp_seq_and_ts_off
secure_tcpv6_seq_and_ts_off(const struct net *net, const __be32 *saddr,
const __be32 *daddr,
__be16 sport, __be16 dport);
static inline u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr,
__be16 sport, __be16 dport)
{
union tcp_seq_and_ts_off ts;
ts = secure_tcpv6_seq_and_ts_off(&init_net, saddr, daddr,
sport, dport);
return ts.seq;
}
#endif /* _NET_SECURE_SEQ */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct net`, `function secure_tcp_seq`, `function secure_tcpv6_seq`.
- 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.