Liking cljdoc? Tell your friends :D

lb.programs.common

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.
raw docstring

lb.programs.tc-ingress

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
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
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close