net/core/flow_dissector.c
Source file repositories/reference/linux-study-clean/net/core/flow_dissector.c
File Facts
- System
- Linux kernel
- Corpus path
net/core/flow_dissector.c- Extension
.c- Size
- 57484 bytes
- Lines
- 2099
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/skbuff.hlinux/export.hlinux/ip.hlinux/ipv6.hlinux/if_vlan.hlinux/filter.hnet/dsa.hnet/dst_metadata.hnet/ip.hnet/ipv6.hnet/gre.hnet/pptp.hnet/tipc.hlinux/igmp.hlinux/icmp.hlinux/sctp.hlinux/dccp.hlinux/if_tunnel.hlinux/if_pppox.hlinux/ppp_defs.hlinux/stddef.hlinux/if_ether.hlinux/if_hsr.hlinux/mpls.hlinux/tcp.hlinux/ptp_classify.hnet/flow_dissector.hnet/pkt_cls.hscsi/fc/fc_fcoe.huapi/linux/batadv_packet.hlinux/bpf.h
Detected Declarations
struct _flow_keys_digest_datafunction dissector_set_keyfunction skb_flow_dissector_initfunction flow_dissector_bpf_prog_attach_checkfunction for_each_netfunction skb_flow_get_portsfunction icmp_has_idfunction skb_flow_get_icmp_tcifunction skb_flow_get_icmp_tcifunction __skb_flow_dissect_ahfunction __skb_flow_dissect_espfunction __skb_flow_dissect_l2tpv3function skb_flow_dissect_metafunction skb_flow_dissect_set_enc_controlfunction skb_flow_dissect_ctfunction skb_flow_dissect_tunnel_infofunction skb_flow_dissect_hashfunction __skb_flow_dissect_mplsfunction __skb_flow_dissect_arpfunction __skb_flow_dissect_cfmfunction __skb_flow_dissect_grefunction __skb_flow_dissect_batadvfunction __skb_flow_dissect_tcpfunction __skb_flow_dissect_portsfunction __skb_flow_dissect_ipv4function __skb_flow_dissect_ipv6function skb_flow_dissect_allowedfunction __skb_flow_bpf_to_targetfunction dissector_uses_keyfunction bpf_flow_dissectfunction is_pppoe_ses_hdr_validfunction __skb_flow_dissectfunction htonsfunction __flow_hash_secret_initfunction flow_keys_hash_lengthfunction flow_get_u32_srcfunction flow_get_u32_dstfunction __flow_hash_consistentifyfunction __flow_hash_from_keysfunction flow_hash_from_keysfunction flow_hash_from_keys_seedfunction ___skb_get_hashfunction make_flow_keys_digestfunction __skb_get_hash_symmetric_netfunction __skb_get_hash_netfunction skb_get_hash_perturbfunction __skb_get_pofffunction skb_get_poff
Annotated Snippet
core_initcall(init_default_flow_dissectors);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/skbuff.h`, `linux/export.h`, `linux/ip.h`, `linux/ipv6.h`, `linux/if_vlan.h`, `linux/filter.h`, `net/dsa.h`.
- Detected declarations: `struct _flow_keys_digest_data`, `function dissector_set_key`, `function skb_flow_dissector_init`, `function flow_dissector_bpf_prog_attach_check`, `function for_each_net`, `function skb_flow_get_ports`, `function icmp_has_id`, `function skb_flow_get_icmp_tci`, `function skb_flow_get_icmp_tci`, `function __skb_flow_dissect_ah`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.