<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><span>Fix code style<br>
</span></div>
<div><span><br>
</span></div>
<div><span>From 5ab54a6b1fd4c4a721e66727a135b5c03051224e Mon Sep 17 00:00:00 2001</span></div>
<div><span></span></div>
<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 | 3 +++<br>
</div>
<div> 1 file changed, 3 insertions(+)<br>
</div>
<div><br>
</div>
<div>diff --git a/interface-ip.c b/interface-ip.c<br>
</div>
<div>index 6900cd7..8d5587c 100644<br>
</div>
<div>--- a/interface-ip.c<br>
</div>
<div>+++ b/interface-ip.c<br>
</div>
<div>@@ -196,6 +196,9 @@ __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> /* 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>
</body>
</html>