From f85fe9720be14acc1038ed400654d8ce336274a7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 24 Sep 2017 20:00:34 +0800 Subject: ICMPv6: Send router advertisement from own link-local address I'm not quite sure how I ended up doing this, but for some strange reason the code before this commit is sending the ICMPv6 Router Advertisements from some weird non-standard source address. This is a violation of RFC4861 which clearly states that the source address of router advertisements "MUST be the link-local address assigned to the interface from which this message is sent." Change-Id: Ib444af70fc8f0b433d371281601fd5a37b29039e --- ggsn/icmpv6.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ggsn/icmpv6.h') diff --git a/ggsn/icmpv6.h b/ggsn/icmpv6.h index ebff04e..b6eec63 100644 --- a/ggsn/icmpv6.h +++ b/ggsn/icmpv6.h @@ -3,4 +3,5 @@ #include "../gtp/gtp.h" #include "../gtp/pdp.h" -int handle_router_mcast(struct gsn_t *gsn, struct pdp_t *pdp, const uint8_t *pack, unsigned len); +int handle_router_mcast(struct gsn_t *gsn, struct pdp_t *pdp, const struct in6_addr *own_ll_addr, + const uint8_t *pack, unsigned len); -- cgit v1.2.3