Projects

Ticket #43 (new defect report)

Opened 3 years ago

Last modified 11 months ago

UDP port 6970-6971 binds to all IP instread of only defined bind_ip_addr

Reported by: bsa@… Owned by:
Priority: blocker Version: Linux
Keywords: 6970 bind_ip_addr Cc:

Description

Even if

<PREF NAME="bind_ip_addr" >1.2.3.4</PREF>

is defined Darwin binds UDP port 6970-6971 to all ipadresses on the Linux version of Darwin 6.0.3

I suspect the RTSPClientLib/ClientSession.cpp void ClientSession::SetupUDPSockets() Around line 653

to be the problem.

Will try to patch a solutions that will make use of "bind_ip_addr"

Bjarne

Attachments

dss-bind-on-all-ip.patch Download (1.7 KB) - added by bsa@… 3 years ago.
Solves the problem on Linux where Darwin binds to all IP adresses instread of making use of bind_ip_addr in streamingserver.xml

Change History

Changed 3 years ago by bsa@…

INADDR_ANY must be wrong

Changed 3 years ago by bsa@…

INADDR_ANY is present (and may perhaps be changed) in:

Server.tproj/RTSPStream.cpp line 519 Server.tproj/RTSPStream.cpp line 545 Server.tproj/QTSServer.cpp line 500 Server.tproj/QTSServer.cpp line 533 RTSPClientLib/ClientSession.cpp line 653 RTSPClientLib/ClientSession.cpp line 655 APICommonCode/SDPSourceInfo.cpp line 232 APIModules/QTSSReflectorModule/RelaySDPSourceInfo.cpp line 155 APIModules/QTSSReflectorModule/ReflectorStream.cpp line 381 APIModules/QTSSReflectorModule/ReflectorStream.cpp line 387 APIModules/QTSSReflectorModule/ReflectorStream.cpp line 391 APIModules/QTSSReflectorModule/ReflectorStream.cpp line 400 CommonUtilitiesLib/UDPSocket.cpp line 129 CommonUtilitiesLib/Socket.cpp line 269

Changed 3 years ago by bsa@…

Actually I found the problem

It's in

Server.tproj/QTSServer.cpp

in the function

Bool16 QTSServer::SetupUDPSockets()

I've patched the code.

Changed 3 years ago by bsa@…

Solves the problem on Linux where Darwin binds to all IP adresses instread of making use of bind_ip_addr in streamingserver.xml

Changed 3 years ago by bsa@…

Aaargh...

The patch is not complete.

DSS binds also to 127.0.0.1:554 instead of just the IP address.

The problem is still in Server.tproj/QTSServer.cpp I guess. I will try to create a working patch.

Note: See TracTickets for help on using tickets.