ctdb-common: Fix a bug in non-Linux (PCAP) TCP packet capturing
authorMartin Schwenke <martin@meltin.net>
Fri, 17 Aug 2018 05:36:41 +0000 (15:36 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 30 Aug 2018 02:48:58 +0000 (04:48 +0200)
commitf3a1f1e1fa9a8a0fe6ffd3809a64d8185cb561b7
treedf6d4ecab12c24624890ffcd200765dbdfee2142
parent0beb16f34ea538519213bb2f81d2cd04467c5baa
ctdb-common: Fix a bug in non-Linux (PCAP) TCP packet capturing

Captured packets include a link-layer header, which is considered in
the Linux code but not the PCAP code.  Also, the actual captured
length is in caplen, not len.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/system_socket.c