How 0xbad4/lynx works
lynx is a header-only C++ library for inspecting, parsing, and processing packet data—not a general networking stack. Its principal workflow is to capture a Linux interface frame as Raw data, then use typed protocol accessors to interpret its layers. The graph also preserves packet construction/serialization primitives and the documented link-, internet-, and transport-layer protocol families. Several protocol headers were not sampled; their capabilities are documented, but uncertain internal dispatch relationships are omitted.
Main entry points: proto.h Protocol base · iface.h Interface capture · eth Ethernet and VLAN · frame.h Link frames
Components 20
Packet primitives
- Base objects
include/lynx/core/base/obj.h - Protocol base
include/lynx/core/base/proto.h - Byte buffers
include/lynx/core/buffer.h - Config and utilities
include/lynx/core
Link protocols
- Raw payloads
include/lynx/protocols/extras/raw.h - TLV structures
include/lynx/protocols/extras/tlv.h - Link frames
include/lynx/protocols/ll/frame.h - Ethernet and VLAN
include/lynx/protocols/ll/eth - PPP family
include/lynx/protocols/ll/ppp - Other link protocols
include/lynx/protocols/ll
Network protocols
- Internet packet base
include/lynx/protocols/il/packet.h - ARP
include/lynx/protocols/il/arp.h - IPv4
include/lynx/protocols/il/ipv4.h - IPv6
include/lynx/protocols/il/ipv6.h - Transport base
include/lynx/protocols/tl/segment.h - Transport protocols
include/lynx/protocols/tl
Linux networking
- Interface capture
include/lynx/net/platform/linux/iface.h - Raw socket helpers
include/lynx/net/platform/linux/socket.h - Networking API
include/lynx/net/io.h
Other components
- Library user
Connections 25
- Library user → Interface capture: opens and reads
- Interface capture → Raw payloads: returns captured frame
include/lynx/net/platform/linux/iface.h - Library user → Ethernet and VLAN: gets typed protocol
- Protocol base → Base objects: inherits from
include/lynx/core/base/proto.h - Protocol base → Byte buffers: serializes into
include/lynx/core/base/proto.h - Base objects → Config and utilities: uses config and errors
include/lynx/core/base/obj.h - Raw payloads → Protocol base: derives from
include/lynx/protocols/extras/raw.h - TLV structures → Protocol base: derives from
include/lynx/protocols/extras/tlv.h - Link frames → Protocol base: derives from
include/lynx/protocols/ll/frame.h - Ethernet and VLAN → Link frames: extends frame
include/lynx/protocols/ll/eth/eth.h - Ethernet and VLAN → Ethernet and VLAN: extends Ethernet
include/lynx/protocols/ll/eth/dot1q.h - PPP family → Link frames: extends frame
include/lynx/protocols/ll/ppp/ppp.h - Other link protocols → Link frames: uses frame base
include/lynx/protocols/ll/eap.h - Internet packet base → Protocol base: derives from
include/lynx/protocols/il/packet.h - ARP → Internet packet base: uses packet base
include/lynx/protocols/il/arp.h - IPv4 → Internet packet base: extends packet
include/lynx/protocols/il/ipv4.h - IPv6 → Internet packet base: extends packet
include/lynx/protocols/il/ipv6.h - Transport base → Protocol base: derives from
include/lynx/protocols/tl/segment.h - Transport protocols → Transport base: uses transport base
include/lynx/protocols/tl/tcp.h - Transport protocols → IPv4: TCP uses packet type
include/lynx/protocols/tl/tcp.h - Transport protocols → IPv6: TCP uses packet type
include/lynx/protocols/tl/tcp.h - Interface capture → Raw socket helpers: uses socket operations
include/lynx/net/platform/linux/iface.h - Interface capture → Raw payloads: dissects protocols
include/lynx/net/platform/linux/iface.h - Networking API → Interface capture: exposes interface API
include/lynx/net/io.h - Networking API → Raw socket helpers: exposes socket API
include/lynx/net/io.h