EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Problems with hanging osiSockTest
From: "Johnson, Andrew N. via Core-talk" <core-talk at aps.anl.gov>
To: EPICS core-talk <core-talk at aps.anl.gov>
Date: Thu, 19 Nov 2020 15:53:57 +0000
On Nov 19, 2020, at 4:32 AM, Ralph Lange via Core-talk <core-talk at aps.anl.gov> wrote:

On Thu, 19 Nov 2020 at 11:12, Zimoch Dirk (PSI) via Core-talk <core-talk at aps.anl.gov> wrote:

I have just noticed that I had sent this only to Andrew, not to the core-talk list.

The problematic interface is "virbr0" which may have something to do with VmWare being installed on the system. or maybe docker?


That's the NAT interface for virtual machines. Gets created by libvirt, VMware player, VirtualBox, …

My RHEL-7 machine also has a virbr0 interface (with exactly the same IP address) because I’m running VMs (but there are no IOCs running there, in case that makes a difference) and it passes these tests. Here is my output from the new version for comparison.

- Andrew

tux% ./osiSockTest 
1..24
ok  1 - osiSockAttach
# udpSockTest()
ok  2 - epicsSocketCreate INET, DGRAM, 0
ok  3 - setsockopt BROADCAST := 1
ok  4 - getsockopt BROADCAST => 1
ok  5 - setsockopt BROADCAST := 0
ok  6 - getsockopt BROADCAST => 0
ok  7 - setsockopt MULTICAST_LOOP := 1
ok  8 - getsockopt MULTICAST_LOOP => 1
ok  9 - setsockopt MULTICAST_LOOP := 0
ok 10 - getsockopt MULTICAST_LOOP => 0
ok 11 - setsockopt IP_MULTICAST_TTL := 2
ok 12 - getsockopt IP_MULTICAST_TTL => 2
ok 13 - setsockopt IP_MULTICAST_TTL := 1
ok 14 - getsockopt IP_MULTICAST_TTL => 1
# udpSockFanoutBindTest()
# First test if epicsSocketEnableAddressUseForDatagramFanout() is necessary
ok 15 - bind() to port 56158
ok 16 - bind() to 56158 error -1, 98
# Now the real test
ok 17 - bind() to port 56158
ok 18 - bind() to port 56158
# udpSockFanoutTest()
# Interface 164.54.11.255:5064
# Not LO
# RX2 start
# RX2 success 2237942512
# RX1 start
# RX1 success 2237942512
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 0
# RX2 success 0
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 1
# RX2 success 1
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 2
# RX2 success 2
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 3
# RX2 success 3
# RX2 success 4
# RX2 end
# RX1 success 4
# RX1 end
# Result: RX1 1f:0 RX2 1f:0
# Interface 192.168.122.255:5064
# Not LO
# RX1 start
# RX1 success 1553330437
# RX2 start
# RX2 success 1553330437
# RX1 success 0
# RX2 success 0
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 1
# RX2 success 1
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 2
# RX2 success 2
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 3
# RX2 success 3
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX ignore n=32 cmd=0 size=0 dtype=1 dcnt=13 body=
# RX1 success 4
# RX1 end
# RX2 success 4
# RX2 end
# Result: RX1 1f:0 RX2 1f:0
ok 19 - Found non-loopback interface
ok 20 - Successes 2
# tcpSockReuseBindTest(0)
ok 21 - bind() to port 57387
ok 22 - bind() to 57387 error -1, 98
# tcpSockReuseBindTest(1)
# epicsSocketEnableAddressReuseDuringTimeWaitState
ok 23 - bind() to port 43154
ok 24 - bind() to 43154 error -1, 98

    Results
    =======
       Tests: 24 
      Passed:  24 = 100.00%


-- 
Complexity comes for free, simplicity you have to work for.


References:
Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
Re: Problems with hanging osiSockTest Johnson, Andrew N. via Core-talk
AW: Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
AW: Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
Re: Problems with hanging osiSockTest Ralph Lange via Core-talk

Navigate by Date:
Prev: Re: Problems with hanging osiSockTest Ralph Lange via Core-talk
Next: Re: AW: another git question Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problems with hanging osiSockTest Ralph Lange via Core-talk
Next: Re: AW: Problems with hanging osiSockTest Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 19 Nov 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·