Fix the use of ipv6 addresses on interfaces. (Submitted to the zebra
folk for the next release). Submitted by: Armin Arh <armin@schlund.de>
This commit is contained in:
parent
4226180b2a
commit
e79b431908
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51404
12
net/zebra-devel/files/patch-ioctl.c
Normal file
12
net/zebra-devel/files/patch-ioctl.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- zebra/ioctl.c.orig Wed Dec 12 18:02:16 2001
|
||||
+++ zebra/ioctl.c Wed Dec 12 18:02:30 2001
|
||||
@@ -478,6 +478,9 @@
|
||||
mask.sin6_len = sizeof (struct sockaddr_in6);
|
||||
#endif
|
||||
memcpy (&addreq.ifra_prefixmask, &mask, sizeof (struct sockaddr_in6));
|
||||
+
|
||||
+ addreq.ifra_lifetime.ia6t_vltime = 0xffffffff;
|
||||
+ addreq.ifra_lifetime.ia6t_pltime = 0xffffffff;
|
||||
|
||||
ret = if_ioctl_ipv6 (SIOCAIFADDR_IN6, (caddr_t) &addreq);
|
||||
if (ret < 0)
|
12
net/zebra-pj/files/patch-ioctl.c
Normal file
12
net/zebra-pj/files/patch-ioctl.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- zebra/ioctl.c.orig Wed Dec 12 18:02:16 2001
|
||||
+++ zebra/ioctl.c Wed Dec 12 18:02:30 2001
|
||||
@@ -478,6 +478,9 @@
|
||||
mask.sin6_len = sizeof (struct sockaddr_in6);
|
||||
#endif
|
||||
memcpy (&addreq.ifra_prefixmask, &mask, sizeof (struct sockaddr_in6));
|
||||
+
|
||||
+ addreq.ifra_lifetime.ia6t_vltime = 0xffffffff;
|
||||
+ addreq.ifra_lifetime.ia6t_pltime = 0xffffffff;
|
||||
|
||||
ret = if_ioctl_ipv6 (SIOCAIFADDR_IN6, (caddr_t) &addreq);
|
||||
if (ret < 0)
|
12
net/zebra/files/patch-ioctl.c
Normal file
12
net/zebra/files/patch-ioctl.c
Normal file
@ -0,0 +1,12 @@
|
||||
--- zebra/ioctl.c.orig Wed Dec 12 18:02:16 2001
|
||||
+++ zebra/ioctl.c Wed Dec 12 18:02:30 2001
|
||||
@@ -478,6 +478,9 @@
|
||||
mask.sin6_len = sizeof (struct sockaddr_in6);
|
||||
#endif
|
||||
memcpy (&addreq.ifra_prefixmask, &mask, sizeof (struct sockaddr_in6));
|
||||
+
|
||||
+ addreq.ifra_lifetime.ia6t_vltime = 0xffffffff;
|
||||
+ addreq.ifra_lifetime.ia6t_pltime = 0xffffffff;
|
||||
|
||||
ret = if_ioctl_ipv6 (SIOCAIFADDR_IN6, (caddr_t) &addreq);
|
||||
if (ret < 0)
|
Loading…
Reference in New Issue
Block a user