diff options
author | Martin Schwenke <martin@meltin.net> | 2018-08-29 15:48:21 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2018-08-30 04:48:58 +0200 |
commit | af5a42bf028b2159eed740c1e7d8baae11eb4c06 (patch) | |
tree | e0387e6d0a88689682e6e896d859a1711b4fe9ae /ctdb/common | |
parent | ca0db67df9a122528a37558ddfe8f9a34e7ff684 (diff) | |
download | samba-af5a42bf028b2159eed740c1e7d8baae11eb4c06.tar.gz |
ctdb-common: Set version more obviously in IPv6 NA packet
Version is the top 4 bits of this field.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/system_socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |