]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: netscaler: check in one-shot if buffer is large enough for IP and TCP header
authorBertrand Jacquin <jacquinb@amazon.com>
Wed, 13 Dec 2017 01:15:05 +0000 (01:15 +0000)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Dec 2017 06:04:07 +0000 (07:04 +0100)
commit67de5a295c9f4693f0c65d69fed67a3618bee6dd
tree879eb27cfc6da70bfaf589e3ff6cc725ca6e5f0a
parent43a66a96b3d39157687b6d53c57f431a7f83cec5
MINOR: netscaler: check in one-shot if buffer is large enough for IP and TCP header

There is minimal gain in checking first the IP header length and then
the TCP header length since we always want to capture information about
both protocols.

IPv4 length calculation was incorrect since IPv4 ip_len actually defines
the total length of IPv4 header and following data.
src/connection.c