aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-07 19:22:49 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-07 19:22:49 +0000
commitc7c151fe3a2700bcabfc07235176fcedf7e9b089 (patch)
treec4f204f7cf4ac65758b0cd2d4baad3654d7a858e
parent7132fef2a6b08d270b412d37a4c38b34728993ea (diff)
parent1feabfef63d697a970c6524a39ef86c159b08e65 (diff)
downloadslirp-c7c151fe3a2700bcabfc07235176fcedf7e9b089.zip
slirp-c7c151fe3a2700bcabfc07235176fcedf7e9b089.tar.gz
slirp-c7c151fe3a2700bcabfc07235176fcedf7e9b089.tar.bz2
Merge branch 'icmp6-na-use-target' into 'master'
Use target address from Neighbor Advertisement See merge request slirp/libslirp!129
-rw-r--r--src/ip6_icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ip6_icmp.c b/src/ip6_icmp.c
index 3168457..732b202 100644
--- a/src/ip6_icmp.c
+++ b/src/ip6_icmp.c
@@ -367,7 +367,7 @@ static void ndp_input(struct mbuf *m, Slirp *slirp, struct ip6 *ip,
ntohs(ip->ip_pl) >= ICMP6_NDP_NA_MINLEN &&
!IN6_IS_ADDR_MULTICAST(&icmp->icmp6_nna.target) &&
(!IN6_IS_ADDR_MULTICAST(&ip->ip_dst) || icmp->icmp6_nna.S == 0)) {
- ndp_table_add(slirp, ip->ip_src, eth->h_source);
+ ndp_table_add(slirp, icmp->icmp6_nna.target, eth->h_source);
}
break;