All of lore.kernel.org
 help / color / mirror / Atom feed
From: "gary" <guohuizou2000@sina.com>
To: 'Sven Eckelmann' <sven@narfation.org>,
	'Jonathan Haws' <jhaws@sdl.usu.edu>
Cc: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] alfred and batadv-vis issue
Date: Thu, 25 Oct 2018 17:06:18 +0800	[thread overview]
Message-ID: <042f01d46c41$fe24ddd0$fa6e9970$@sina.com> (raw)
In-Reply-To: <1897809.X9xPm7IOO6@bentobox>


Hi Sven and Jon,

The patch does NOT work for me.

I review the code again and find the issue. The following code may make my
testbed work.


--- a/util.c
+++ b/util.c
@@ -122,14 +122,14 @@ int ipv4_arp_request(struct interface *interface,
const alfred_addr *addr,
        arpreq.arp_dev[sizeof(arpreq.arp_dev) - 1] = '\0';
 
        if (ioctl(interface->netsock, SIOCGARP, &arpreq) < 0)
-               return -1;
-
-       while (retries-- && !(arpreq.arp_flags & ATF_COM)) {
-               ipv4_request_mac_resolve(addr);
-               usleep(200000);
-
-               if (ioctl(interface->netsock, SIOCGARP, &arpreq) < 0)
-                       return -1;
+       {
+               while (retries-- && !(arpreq.arp_flags & ATF_COM)) {
+                       ipv4_request_mac_resolve(addr);
+                       usleep(200000);
+
+                       if (ioctl(interface->netsock, SIOCGARP, &arpreq) <
0)
+                               return -1;
+               }
        }

Regards,
Gary


-----Original Message-----
From: Sven Eckelmann <sven@narfation.org> 
Sent: 2018年10月25日 14:15
To: Jonathan Haws <jhaws@sdl.usu.edu>
Cc: guohuizou2000@sina.com; b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] alfred and batadv-vis issue

On Mittwoch, 24. Oktober 2018 18:39:43 CEST Jonathan Haws wrote:
[...]
> I just submitted a patch that pulls the request_mac_resolve() routine 
> from batctl, modifies it appropriately, and uses it when MAC 
> resolution isn't from the cache.
> 
> I've tested this with my VM setup here and it works properly (after I 
> verified that the nodes were not sharing messages first).
> 
> Gary - can you try the patch with your setup and make sure it solves 
> the problem in your setup as well?


The patch can be found at https://patchwork.open-mesh.org/patch/17552/ (or
directly on the mailing list)

Please reply via mail with a line

Tested-by: FirstName LastName <guohuizou2000@sina.com>

when you've successfully tested it (FirstName and LastName have to be
replaced with your actual name).

Kind regards,
	Sven



  reply	other threads:[~2018-10-25  9:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-18  5:53 [B.A.T.M.A.N.] alfred and batadv-vis issue gary
2018-10-18  6:22 ` Sven Eckelmann
2018-10-22 17:36   ` Jonathan Haws
2018-10-23  3:02     ` gary
2018-10-23  4:04       ` Jonathan Haws
2018-10-23  6:29         ` Sven Eckelmann
2018-10-23  9:52           ` gary
2018-10-23 10:25             ` Sven Eckelmann
2018-10-23 13:50           ` Jonathan Haws
2018-10-23 14:06             ` Sven Eckelmann
2018-10-23 14:11               ` Jonathan Haws
2018-10-23 14:16                 ` Sven Eckelmann
2018-10-24 18:39                   ` Jonathan Haws
2018-10-25  6:15                     ` Sven Eckelmann
2018-10-25  9:06                       ` gary [this message]
2018-10-29 16:07                         ` Jonathan Haws
2018-10-29 16:48                           ` Sven Eckelmann
2018-10-29 17:25                             ` Jonathan Haws
2018-10-29 17:34                               ` Sven Eckelmann
2018-10-30  5:24                           ` gary
2018-10-30 14:20                             ` Jonathan Haws
2018-10-30 14:27                               ` Sven Eckelmann
  -- strict thread matches above, loose matches on Subject: below --
2018-10-25 13:40 Jonathan Haws

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='042f01d46c41$fe24ddd0$fa6e9970$@sina.com' \
    --to=guohuizou2000@sina.com \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=jhaws@sdl.usu.edu \
    --cc=sven@narfation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.