]> git.ipfire.org Git - thirdparty/grub.git/commit
send router solicitation for ipv6 address autoconf v2
authorMichael Chang <mchang@suse.com>
Tue, 18 Nov 2014 08:03:08 +0000 (16:03 +0800)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Fri, 28 Nov 2014 17:21:34 +0000 (20:21 +0300)
commit7c4b6b7bb476963ca7e86f79d32036e7f80d27f6
treed1ac5f0c39aaff978f77d188a53cac781ea39a18
parente2dd6daa8c33e3e7641e442dc269fcca479c6fda
send router solicitation for ipv6 address autoconf v2

Many routers have long router advertisment interval configured by
default. The Neighbor Discovery protocol (RFC4861) has defined default
MaxRtrAdvInterval value as 600 seconds and
MinRtrAdvInterval as 0.33*MaxRtrAdvInterval. This makes
net_ipv6_autoconf fails more often than not as currently it passively
listens the RA message to perfom address autoconfiguration.

This patch tries to send router solicitation to overcome the problem of
long RA interval.

v2:
use cpu_to_be macro for network byte order conversion
add missing error handling
grub-core/net/icmp6.c
grub-core/net/net.c
include/grub/net/ip.h