]> git.kaiwu.me - haproxy.git/commit
MINOR: net_helper: add sample converters to decode ethernet frames
authorWilly Tarreau <w@1wt.eu>
Sat, 27 Dec 2025 15:45:09 +0000 (16:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Dec 2025 16:15:36 +0000 (17:15 +0100)
commit90d2f157f2721e1920e38a7bc8004d1400c57b88
treeea16d7b52856739a85b67aa1d1c4c4b7a7079180
parent933cb76461795cf5ca9754cd821a409d1f8dec95
MINOR: net_helper: add sample converters to decode ethernet frames

This adds a few converters that help decode parts of ethernet frame
headers:
  - eth.data : returns the next header (typically IP)
  - eth.dst  : returns the destination MAC address
  - eth.hdr  : returns only the ethernet header
  - eth.proto: returns the ethernet proto
  - eth.src  : returns the source MAC address
  - eth.vlan : returns the VLAN ID when present

These can be used with the tcp-ss bind option. The doc was updated
accordingly.
Makefile
doc/configuration.txt
src/net_helper.c [new file with mode: 0644]