Common eBPF program fragments and DSL utilities shared between XDP and TC programs.
Common eBPF program fragments and DSL utilities shared between XDP and TC programs.
TC egress program for the load balancer. Handles reply packets from backends: performs SNAT to restore original destination.
TC egress program for the load balancer. Handles reply packets from backends: performs SNAT to restore original destination.
TC ingress program for PROXY protocol v2 header injection.
This program runs on the TC ingress path (after XDP DNAT) and injects PROXY protocol v2 headers into the first data packet of each connection that has proxy-protocol enabled.
Flow:
TC ingress program for PROXY protocol v2 header injection. This program runs on the TC ingress path (after XDP DNAT) and injects PROXY protocol v2 headers into the first data packet of each connection that has proxy-protocol enabled. Flow: 1. Parse packet headers (Ethernet, IPv4/IPv6, TCP) 2. Lookup conntrack entry by 5-tuple 3. Check if proxy_enabled flag is set 4. Track TCP state (NEW -> SYN_SENT -> SYN_RECV -> ESTABLISHED) 5. On first DATA packet in ESTABLISHED: inject PROXY v2 header 6. Set header_injected flag and seq_offset for subsequent packets
XDP ingress program for the load balancer. Handles incoming packets: parses headers, looks up routing, performs DNAT.
XDP ingress program for the load balancer. Handles incoming packets: parses headers, looks up routing, performs DNAT.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |