ctdb-common: Be more careful with packet sizes
authorMartin Schwenke <martin@meltin.net>
Tue, 14 Aug 2018 01:25:02 +0000 (11:25 +1000)
committerAmitay Isaacs <amitay@samba.org>
Thu, 30 Aug 2018 02:48:57 +0000 (04:48 +0200)
commite2a00feca3565d3071424246bb25ad1623bdfe6c
tree6f215eeff1018fffc2ea7d0d4e764e281091b727
parent87088af6e49e9ce973cfe77d36cfbf42f9101854
ctdb-common: Be more careful with packet sizes

Ethernet packets must be at least 64 bytes.

For ARP the packet size was limited to 64 bytes.  This is probably OK
but the code might as well be a little more general.

For IPv6 NA there was no guarantee that the packet is at least 64
bytes.

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