How kioubit/pndpd works
Main Components
a) Core Components:
• NDP Packet Processing Engine (in /pndp directory)
• Module System (in /modules directory)
• Configuration Handler
• Network Interface Monitors
b) External Interfaces:
• Network Interfaces (physical/virtual)
• Linux Kernel BPF Integration
• Netlink Communication
• Configuration File Input
• Command Line Interface
• Module System
• NDP Proxy/Responder Logic
• BPF Filters
• Netlink Communication
• Interface Monitoring
Component Relationships
• Configuration → Module System
• Module System → NDP Processing Engine
• NDP Processing Engine ↔ Network Interfaces
• Interface Monitor → NDP Processing Engine
• Module System → Interface Monitoring
• Configuration → NDP Processing Rules
Specific Implementation Details
Technical elements:
• Module extension points
• Network interface pairs (external/internal)
• Blue: Core NDP processing components
• Green: Network interface related components
• Yellow: Configuration and user interface components
• Gray: External system components (kernel, network)
Technical Details
Annotations for:
• CAP_NET_RAW capability requirement
• IPv6 specific handling
• Whitelist functionality
• Auto-detection features
• Component type indicators
• Interface boundaries