BUG: miniSAPserver 0.3.1 TTL always 1

Discussion on the (deprecated) VideoLAN Server application as well as the miniSAPserver stream announcer. This is not about VLC!
Forum rules
Please do not post VLC related questions in this forum category. See the Forum Rules for more information.
geo
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 23 Dec 2003 05:48
Location: Canberra, Australia
Contact:

BUG: miniSAPserver 0.3.1 TTL always 1

Postby geo » 12 Oct 2005 03:29

I'm running miniSAPserver 0.3.1 under MacOS Tiger Server 10.4.2. It compiled fine and runs OK serving SAP to the local subnet.

But other subnets cannot see the announces, and a packet snoop says the TTL is set to 1, even though my cfg file specifies sap_ttl=255. I've tried it on other values (12 say) but still no change at our core router.

This is an IPv4 network.

Does anyone have miniSAPserver running on a multi-segment network? On which OS?

thanks
George


+ 1 programs loaded
+ Packet TTL set to 255
+ Running as program.
v=0
o=UCTV 16914 1 IN IP4 tv.canberra.edu.au
s=geoABC
u=http://uctv.canberra.edu.au
t=0 0
m=video 10002 udp 33
c=IN IP4 239.20.30.2/32
a=type:udp
a=mux:m2t
a=packetformat:RAW
a=tool:miniSAPserver 0.3.1
a=x-plgroup:UCTV

LennonNZ

Postby LennonNZ » 12 Oct 2005 09:33

Its a bug..

in broadcast.cpp

line 100

Change

if (setsockopt(fd6, IPPROTO_IP, IP_MULTICAST_IF,

to

if (setsockopt(fd4, IPPROTO_IP, IP_MULTICAST_IF,


Someone accidently Changing the fd6 TTL in the IP4 section.
This makes it work :-)

Thanks
Craig

geo
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 23 Dec 2003 05:48
Location: Canberra, Australia
Contact:

Postby geo » 13 Oct 2005 07:47

Thanks Craig,

Actually, line 100 is already like that but using the same principle I changed line 111 from

Code: Select all

setsockopt (fd6, IPPROTO_IP, IP_MULTICAST_TTL,
to

Code: Select all

setsockopt (fd4, IPPROTO_IP, IP_MULTICAST_TTL,
make clean etc and all is well. My SAP announces are now broadcast beyond the local subnet.

thanks very much for your help,

George


PS - Are you the maintainer of this package? If not I'll post a message to the developer list about this change.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Postby Rémi Denis-Courmont » 14 Oct 2005 15:00

Fixed in today's release 0.3.2.
Thanks.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VideoLAN Server and miniSAPserver”

Who is online

Users browsing this forum: No registered users and 14 guests