Page 1 of 1

BUG: miniSAPserver 0.3.1 TTL always 1

Posted: 12 Oct 2005 03:29
by geo
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

Posted: 12 Oct 2005 09:33
by LennonNZ
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

Posted: 13 Oct 2005 07:47
by geo
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.

Posted: 14 Oct 2005 15:00
by RĂ©mi Denis-Courmont
Fixed in today's release 0.3.2.
Thanks.