git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca0db67
)
ctdb-common: Set version more obviously in IPv6 NA packet
author
Martin Schwenke
<martin@meltin.net>
Wed, 29 Aug 2018 05:48:21 +0000
(15:48 +1000)
committer
Amitay Isaacs
<amitay@samba.org>
Thu, 30 Aug 2018 02:48:58 +0000
(
04:48
+0200)
Version is the top 4 bits of this field.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/system_socket.c
patch
|
blob
|
history
diff --git
a/ctdb/common/system_socket.c
b/ctdb/common/system_socket.c
index b528b89af8fbab7dac600d2cec45f978a7e3dd22..842ad2b922afe8a972d3b3ffc7248712832a855e 100644
(file)
--- 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);