diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-09-24 20:00:34 +0800 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-09-24 20:51:47 +0800 |
commit | f85fe9720be14acc1038ed400654d8ce336274a7 (patch) | |
tree | e12f5279f153547a1d5b433bfbd62c9ef7868831 /lib/tun.h | |
parent | fed598f41d85cef578925a4be6ce96a2c6afd3b3 (diff) |
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
Diffstat (limited to 'lib/tun.h')
-rw-r--r-- | lib/tun.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,4 +85,6 @@ extern int tun_set_cb_ind(struct tun_t *this, extern int tun_runscript(struct tun_t *tun, char *script); +int tun_ipv6_linklocal_get(const struct tun_t *tun, struct in6_addr *ia); + #endif /* !_TUN_H */ |