include/uapi/linux/netfilter/xt_policy.h
Source file repositories/reference/linux-study-clean/include/uapi/linux/netfilter/xt_policy.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/linux/netfilter/xt_policy.h- Extension
.h- Size
- 1240 bytes
- Lines
- 74
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/netfilter.hlinux/types.hlinux/in.hlinux/in6.h
Detected Declarations
struct xt_policy_specstruct xt_policy_elemstruct xt_policy_infoenum xt_policy_flagsenum xt_policy_modes
Annotated Snippet
struct xt_policy_spec {
__u8 saddr:1,
daddr:1,
proto:1,
mode:1,
spi:1,
reqid:1;
};
#ifndef __KERNEL__
union xt_policy_addr {
struct in_addr a4;
struct in6_addr a6;
};
#endif
struct xt_policy_elem {
union {
#ifdef __KERNEL__
struct {
union nf_inet_addr saddr;
union nf_inet_addr smask;
union nf_inet_addr daddr;
union nf_inet_addr dmask;
};
#else
struct {
union xt_policy_addr saddr;
union xt_policy_addr smask;
union xt_policy_addr daddr;
union xt_policy_addr dmask;
};
#endif
};
__be32 spi;
__u32 reqid;
__u8 proto;
__u8 mode;
struct xt_policy_spec match;
struct xt_policy_spec invert;
};
struct xt_policy_info {
struct xt_policy_elem pol[XT_POLICY_MAX_ELEM];
__u16 flags;
__u16 len;
};
#endif /* _XT_POLICY_H */
Annotation
- Immediate include surface: `linux/netfilter.h`, `linux/types.h`, `linux/in.h`, `linux/in6.h`.
- Detected declarations: `struct xt_policy_spec`, `struct xt_policy_elem`, `struct xt_policy_info`, `enum xt_policy_flags`, `enum xt_policy_modes`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.