AW: AW: [Gambas-user] UDP Broadcast

Michi mwuest at ...1436...
Sun May 21 23:31:21 CEST 2006


Hello,

I checked it more than once. I also realized that the
broadcasts packages not really leave the system...

I checked it with Ethereal. As soon as the broadcasting
system leaves the subnet and enters its own, the broadcasts
are no longer received. I checked the system with Ethereal
running with a GPS time server doing NTP broadcasts...

Are there any Debian-specific tricks regarding kernel
setups and/or system configurations???

Thanks,
bye,
Michael.

PS: TTL AFAIK is for Multicast.
PPS: I also checked your 1.9.30 sourcecode. You are
     quite doing the same in your sourcecode like I
     did in my "tweak". I just hardcoded setting
     SO_BROADCAST to "1" whereas you gave us the
     option...


On Sunday 21 May 2006 16:59, Michi wrote:
> Hi again.
>
> Finally I made it to patch the gb.net source code
> to no longer complain about the broadcast adress
> "255.255.255.255".
>
> I added setsocketopt to the write-routine and to
> the dgram_start-routine in CUDPSOCKET.C
>
> Now there is a new problem.
>
> Gambas/Debian does not seem to receive UDP broadcasts
> from systems being from another subnet.
>
> Meaning: PC1 having 192.168.181.20
> Meaning: PC2 having 182.168.181.123
>
> Is there again any trick with this?
>
> Thanks,
> bye,
> Michael.
>

If I remember, UDP broadcast packets have a "Time To Live" option that is
the
number of subnet it can go through. This number is one by default, so by
default UDP broadcasts stay in the same subnet.

But I can be wrong, as I am not a network specialist!

I will add all useful TCP/UDP/IP socket options as I did with the Broadcast
property in 1.9.30.

Regards,

--
Benoit Minisini



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





More information about the User mailing list