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%