linux-ppp.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Change IPv6 route prefix to 128
@ 2019-11-15 16:40 Joakim Tjernlund
  0 siblings, 0 replies; only message in thread
From: Joakim Tjernlund @ 2019-11-15 16:40 UTC (permalink / raw)
  To: linux-ppp

Adding a /10 route isn't useful. Covert to /128 host route so
one can actually ping the remote side.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
---
 pppd/sys-linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c
index 89263ed..42c9db4 100644
--- a/pppd/sys-linux.c
+++ b/pppd/sys-linux.c
@@ -2767,8 +2767,8 @@ int sif6addr (int unit, eui64_t our_eui64, eui64_t his_eui64)
     /* Route to remote host */
     memset(&rt6, 0, sizeof(rt6));
     IN6_LLADDR_FROM_EUI64(rt6.rtmsg_dst, his_eui64);
-    rt6.rtmsg_flags = RTF_UP;
-    rt6.rtmsg_dst_len = 10;
+    rt6.rtmsg_flags = RTF_UP | RTF_HOST;
+    rt6.rtmsg_dst_len = 128;
     rt6.rtmsg_ifindex = ifr.ifr_ifindex;
     rt6.rtmsg_metric = 1;
 
-- 
2.23.0

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-11-15 16:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-15 16:40 [PATCH 1/2] Change IPv6 route prefix to 128 Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).