commit | 67db8df12ba640f639492e23d554a9cd09dfe8ad | [log] [tgz] |
---|---|---|
author | Lukas Tribus <luky-37@hotmail.com> | Sun Jun 23 17:37:13 2013 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Jun 23 18:01:38 2013 +0200 |
tree | a2afcc10983057dadc315ded716e1725e1b9710b | |
parent | 2dd1d1a93f70dddc0636f5cb2f5921998dc91e65 [diff] |
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.