]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: add IPv6 support for "set-tos"
authorLukas Tribus <luky-37@hotmail.com>
Sun, 23 Jun 2013 15:37:13 +0000 (17:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Jun 2013 16:01:38 +0000 (18:01 +0200)
commit67db8df12ba640f639492e23d554a9cd09dfe8ad
treea2afcc10983057dadc315ded716e1725e1b9710b
parent2dd1d1a93f70dddc0636f5cb2f5921998dc91e65
MEDIUM: http: add IPv6 support for "set-tos"

As per RFC3260 #4 and BCP37 #4.2 and #5.2, the IPv6 counterpart of TOS
is "traffic class".

Add support for IPv6 traffic class in "set-tos" by moving the "set-tos"
related code to the new inline function inet_set_tos(), handling IPv4
(IP_TOS), IPv6 (IPV6_TCLASS) and IPv4-mapped sockets (IP_TOS, like
::ffff:127.0.0.1).

Also define - if missing - the IN6_IS_ADDR_V4MAPPED() macro in
include/common/compat.h for compatibility.
include/common/compat.h
src/proto_http.c