]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: net_helper: add sample converters to decode IP packet headers
authorWilly Tarreau <w@1wt.eu>
Sat, 27 Dec 2025 16:46:44 +0000 (17:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Dec 2025 16:16:29 +0000 (17:16 +0100)
commite0a7a7ca43f9493399f7cda87f94809c4ef62431
tree0d3110b68e6c7f9d3b0da6224d967d4975125329
parent90d2f157f2721e1920e38a7bc8004d1400c57b88
MINOR: net_helper: add sample converters to decode IP packet headers

This adds a few converters that help decode parts of IP packets:
  - ip.data : returns the next header (typically TCP)
  - ip.df   : returns the dont-fragment flags
  - ip.dst  : returns the destination IPv4/v6 address
  - ip.hdr  : returns only the IP header
  - ip.proto: returns the upper level protocol (udp/tcp)
  - ip.src  : returns the source IPv4/v6 address
  - ip.tos  : returns the TOS / TC field
  - ip.ttl  : returns the TTL/HL value
  - ip.ver  : returns the IP version (4 or 6)

These can be used with the tcp-ss bind option. The doc was updated
accordingly.
doc/configuration.txt
src/net_helper.c