include/linux/netfilter_arp/arp_tables.h
Source file repositories/reference/linux-study-clean/include/linux/netfilter_arp/arp_tables.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/netfilter_arp/arp_tables.h- Extension
.h- Size
- 2151 bytes
- Lines
- 79
- 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/if.hlinux/in.hlinux/if_arp.hlinux/skbuff.huapi/linux/netfilter_arp/arp_tables.hnet/compat.h
Detected Declarations
struct arpt_standardstruct arpt_errorstruct compat_arpt_entryfunction compat_arpt_get_target
Annotated Snippet
struct arpt_standard {
struct arpt_entry entry;
struct xt_standard_target target;
};
struct arpt_error {
struct arpt_entry entry;
struct xt_error_target target;
};
#define ARPT_ENTRY_INIT(__size) \
{ \
.target_offset = sizeof(struct arpt_entry), \
.next_offset = (__size), \
}
#define ARPT_STANDARD_INIT(__verdict) \
{ \
.entry = ARPT_ENTRY_INIT(sizeof(struct arpt_standard)), \
.target = XT_TARGET_INIT(XT_STANDARD_TARGET, \
sizeof(struct xt_standard_target)), \
.target.verdict = -(__verdict) - 1, \
}
#define ARPT_ERROR_INIT \
{ \
.entry = ARPT_ENTRY_INIT(sizeof(struct arpt_error)), \
.target = XT_TARGET_INIT(XT_ERROR_TARGET, \
sizeof(struct xt_error_target)), \
.target.errorname = "ERROR", \
}
extern void *arpt_alloc_initial_table(const struct xt_table *);
int arpt_register_table(struct net *net, const struct xt_table *table,
const struct arpt_replace *repl,
const struct nf_hook_ops *ops);
void arpt_unregister_table(struct net *net, const char *name);
extern unsigned int arpt_do_table(void *priv, struct sk_buff *skb,
const struct nf_hook_state *state);
#ifdef CONFIG_NETFILTER_XTABLES_COMPAT
#include <net/compat.h>
struct compat_arpt_entry {
struct arpt_arp arp;
__u16 target_offset;
__u16 next_offset;
compat_uint_t comefrom;
struct compat_xt_counters counters;
unsigned char elems[];
};
static inline struct xt_entry_target *
compat_arpt_get_target(struct compat_arpt_entry *e)
{
return (void *)e + e->target_offset;
}
#endif /* CONFIG_COMPAT */
#endif /* _ARPTABLES_H */
Annotation
- Immediate include surface: `linux/if.h`, `linux/in.h`, `linux/if_arp.h`, `linux/skbuff.h`, `uapi/linux/netfilter_arp/arp_tables.h`, `net/compat.h`.
- Detected declarations: `struct arpt_standard`, `struct arpt_error`, `struct compat_arpt_entry`, `function compat_arpt_get_target`.
- 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.