MINOR: tcp: add further tcp info fetchers
authorJoe Williams <joe.williams@github.com>
Wed, 10 Aug 2016 14:06:44 +0000 (07:06 -0700)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Aug 2016 21:02:46 +0000 (23:02 +0200)
commit30fcd39f35a4fe0146b3b60948cf130073b991f9
treebfb5ac7b7d152b5555eb181f1221a6d88f0b66d6
parent091e86e1ee8ec51bd5a3c1935666a822a51b9051
MINOR: tcp: add further tcp info fetchers

Adding on to Thierry's work (http://git.haproxy.org/?p=haproxy.git;h=6310bef5)
I have added a few more fetchers for counters based on the tcp_info struct
maintained by the kernel :

  fc_unacked, fc_sacked, fc_retrans, fc_fackets, fc_lost,
  fc_reordering

Two fields were not added because they're version-dependant :
  fc_rcv_rtt, fc_total_retrans

The fields name depend on the operating system. FreeBSD and NetBSD prefix
all the field names with "__" so we have to rely on a few #ifdef for
portability.
doc/configuration.txt
src/proto_tcp.c