net/netfilter/nf_log_syslog.c
Source file repositories/reference/linux-study-clean/net/netfilter/nf_log_syslog.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nf_log_syslog.c- Extension
.c- Size
- 28076 bytes
- Lines
- 1100
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/spinlock.hlinux/skbuff.hlinux/if_arp.hlinux/ip.hnet/ipv6.hnet/icmp.hnet/udp.hnet/tcp.hnet/route.hlinux/netfilter.hlinux/netfilter_bridge.hlinux/netfilter_ipv6.hlinux/netfilter/xt_LOG.hnet/netfilter/nf_log.h
Detected Declarations
struct arppayloadfunction nf_log_allowedfunction nf_log_dump_vlanfunction dump_arp_packetfunction nf_log_dump_packet_commonfunction nf_log_arp_packetfunction nf_log_dump_sk_uid_gidfunction nf_log_dump_tcp_headerfunction nf_log_dump_udp_headerfunction dump_ipv4_packetfunction dump_ipv6_packetfunction dump_mac_headerfunction skb_mac_header_lenfunction nf_log_ip_packetfunction nf_log_ip6_packetfunction nf_log_unknown_packetfunction nf_log_netdev_packetfunction nf_log_syslog_net_initfunction nf_log_syslog_net_exitfunction nf_log_syslog_initfunction nf_log_syslog_exitmodule init nf_log_syslog_init
Annotated Snippet
module_init(nf_log_syslog_init);
module_exit(nf_log_syslog_exit);
MODULE_AUTHOR("Netfilter Core Team <coreteam@netfilter.org>");
MODULE_DESCRIPTION("Netfilter syslog packet logging");
MODULE_LICENSE("GPL");
MODULE_ALIAS("nf_log_arp");
MODULE_ALIAS("nf_log_bridge");
MODULE_ALIAS("nf_log_ipv4");
MODULE_ALIAS("nf_log_ipv6");
MODULE_ALIAS("nf_log_netdev");
MODULE_ALIAS_NF_LOGGER(AF_BRIDGE, 0);
MODULE_ALIAS_NF_LOGGER(AF_INET, 0);
MODULE_ALIAS_NF_LOGGER(3, 0);
MODULE_ALIAS_NF_LOGGER(5, 0); /* NFPROTO_NETDEV */
MODULE_ALIAS_NF_LOGGER(AF_INET6, 0);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/spinlock.h`, `linux/skbuff.h`, `linux/if_arp.h`, `linux/ip.h`, `net/ipv6.h`, `net/icmp.h`.
- Detected declarations: `struct arppayload`, `function nf_log_allowed`, `function nf_log_dump_vlan`, `function dump_arp_packet`, `function nf_log_dump_packet_common`, `function nf_log_arp_packet`, `function nf_log_dump_sk_uid_gid`, `function nf_log_dump_tcp_header`, `function nf_log_dump_udp_header`, `function dump_ipv4_packet`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration 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.