ctdb-common: Avoid magic numbers when building TCP packets
commit8fcf1af559f2a716ebcfb8277668d6539fd432f0
authorMartin Schwenke <martin@meltin.net>
Fri, 17 Aug 2018 02:30:19 +0000 (17 12:30 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 30 Aug 2018 02:48:58 +0000 (30 04:48 +0200)
tree037bb842ea294d4d75aaca1e459aface19c2f02a
parenta02cba1c8a716d8e939d9bfb59e038e14f96e69a
ctdb-common: Avoid magic numbers when building TCP packets

Most packet sizes and offsets are multiples of 32-bit words.  The IPv6
payload length is in octets.  The IPv6 version is the top 4 bits of
the relevant field.

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