summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2019-10-13 20:37:14 +0200
committerHans Dedecker <dedeckeh@gmail.com>2019-10-13 20:39:33 +0200
commit9a4531a4313c4b32a9ffae92c00a59a4d4b738a8 (patch)
treeb68d8452058cb801343024829e718e9199725ec6 /src/ndp.c
parente76ad06d01d31fff4c482974138d2c4566e264cf (diff)
ndp: fix endian issue
Fix endian issue introduced in commit 91a28e4 by using ND_NA_FLAG_SOLICITED defined in netinet/icmp6.h Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/ndp.c')
-rw-r--r--src/ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ndp.c b/src/ndp.c
index 3f0a037..1facceb 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -310,7 +310,7 @@ static void send_na(struct in6_addr *to_addr,
memset(pbuf, 0, sizeof(pbuf));
adv->nd_na_hdr = (struct icmp6_hdr) {
.icmp6_type = ND_NEIGHBOR_ADVERT,
- .icmp6_dataun.icmp6_un_data32 = { 0x40000000L }
+ .icmp6_dataun.icmp6_un_data32 = { ND_NA_FLAG_SOLICITED }
};
adv->nd_na_target = *for_addr;
*opt = (struct nd_opt_hdr) { .nd_opt_type = ND_OPT_TARGET_LINKADDR, .nd_opt_len = 1 };