<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>From d0e1cb81b45ec825199d499cda9c8daef94e13a5 Mon Sep 17 00:00:00 2001<br>
</span>
<div>From: xiaofan <xfan1024@live.com><br>
</div>
<div>Date: Thu, 16 May 2019 21:12:47 +0800<br>
</div>
<div>Subject: [PATCH] interface-ip: fix find locally addressable target for p2p<br>
</div>
<div><br>
</div>
<div>Signed-off-by: xiaofan <xfan1024@live.com><br>
</div>
<div>---<br>
</div>
<div> interface-ip.c | 4 ++++<br>
</div>
<div> 1 file changed, 4 insertions(+)<br>
</div>
<div><br>
</div>
<div>diff --git a/interface-ip.c b/interface-ip.c<br>
</div>
<div>index 6900cd7..7ab8643 100644<br>
</div>
<div>--- a/interface-ip.c<br>
</div>
<div>+++ b/interface-ip.c<br>
</div>
<div>@@ -196,6 +196,10 @@ __find_ip_addr_target(struct interface_ip_settings *ip, union if_addr *a, bool v<br>
</div>
<div> if (v6 != ((addr->flags & DEVADDR_FAMILY) == DEVADDR_INET6))<br>
</div>
<div> continue;<br>
</div>
<div> <br>
</div>
<div>+ if (!v6 && addr->point_to_point && a->in.s_addr == addr->point_to_point) {<br>
</div>
<div>+ return true;<br>
</div>
<div>+ }<br>
</div>
<div>+<br>
</div>
<div> /* Handle offlink addresses correctly */<br>
</div>
<div> unsigned int mask = addr->mask;<br>
</div>
<div> if ((addr->flags & DEVADDR_FAMILY) == DEVADDR_INET6 &&<br>
</div>
<div>-- <br>
</div>
<div>2.17.1<br>
</div>
<div><br>
</div>
<span></span><br>
</div>
</body>
</html>