Re: [PATCH 1/1] tidbits: net-udp: solicit new client for server mode

Hannes Diethelm <[email protected]> Sun, 26 Jul 2026 20:49:41 +0200
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
Am 23.07.26 um 09:47 schrieb Philippe Gerum:
>> I have to test it and will send an update to the oob_net_udp patch
>> soon.
> 
> Thanks.
> 
So, I sent the patch:
[PATCH] tidbits: net-udp: use MSG_STABLE for server mode

However, something is not working as I would expect:
The second oob_sendmsg() line 314 also returns
EADDRNOTAVAIL after evl_net_solicit().

If I leave MSG_STEADY away for the second oob_sendmsg(),
it works. However, I see 2x:
== client 192.168.122.1 not in ARP cache: evl_net_solicit
 From then on, it works forever, also if I restart oob-net-udp.

Looks like the NUD_PERMANENT is not synchronized immediately
but only after the second evl_net_solicit(), shown by this test:

arp -i enp7s0 -d 192.168.122.1

oob-net-udp -d -i enp7s0 -a 0.0.0.0 -S -p 5201 -m "Server"
   ...
   == client 192.168.122.1 not in ARP cache: evl_net_solicit
   ./oob-net-udp: oob_sendmsg() failed: Cannot assign requested address

oob-net-udp -d -i enp7s0 -a 0.0.0.0 -S -p 5201 -m "Server"
   ...
   == client 192.168.122.1 not in ARP cache: evl_net_solicit
   ... now it works

oob-net-udp -d -i enp7s0 -a 0.0.0.0 -S -p 5201 -m "Server"
   ...no evl_net_solicit() any more, still works

linux-evl: 9ad9bf1c
libevl:    115d45af