From: Martin Schwenke Date: Wed, 29 Aug 2018 05:48:21 +0000 (+1000) Subject: ctdb-common: Set version more obviously in IPv6 NA packet X-Git-Tag: tdb-1.3.17~1971 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af5a42bf028b2159eed740c1e7d8baae11eb4c06;p=thirdparty%2Fsamba.git ctdb-common: Set version more obviously in IPv6 NA packet Version is the top 4 bits of this field. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/common/system_socket.c b/ctdb/common/system_socket.c index b528b89af8f..842ad2b922a 100644 --- a/ctdb/common/system_socket.c +++ b/ctdb/common/system_socket.c @@ -278,7 +278,7 @@ static int ip6_na_build(uint8_t *buffer, eh->ether_type = htons(ETHERTYPE_IP6); ip6 = (struct ip6_hdr *)(buffer + sizeof(struct ether_header)); - ip6->ip6_vfc = 0x60; + ip6->ip6_vfc = 6 << 4; ip6->ip6_plen = htons(sizeof(struct nd_neighbor_advert) + sizeof(struct nd_opt_hdr) + ETH_ALEN);