┬ÁTasker Forum

┬ÁTasker Forum => NXPTM LPC2XXX and LPC17XX => Topic started by: aaronlawrence on March 01, 2010, 10:42:51 PM

Title: Should I be able to receive subnet broadcast UDP?
Post by: aaronlawrence on March 01, 2010, 10:42:51 PM
We were previously using broadcast UDP packets to discover devices (destination = 255.255.255.255). Now we changed to subnet broadcasts ( a.b.255.255 where a and b are for example 192 and 168).
uTasker does not seem to receive them though from Wireshark we are sure they are getting to the device. No UDP data is received.
Is this expected? Can we fix it?
Title: Re: Should I be able to receive subnet broadcast UDP?
Post by: mark on March 02, 2010, 01:03:30 AM
Hi Aaron

Check the following configuration:

            #ifdef USE_NETBIOS
                #define NETBIOS_SOCKET 1
                #define SUPPORT_SUBNET_BROADCAST                         // NetBIOS needs to receive sub-net broadcast frames
            #else


If you have NetBIOS active it will allow sub-net broadcast reception (since it needs it). If not it will only receive 255.255.255.255 broadcasts. Assuming you are not using NetBIOS you can set the SUPPORT_SUBNET_BROADCAST alone to enable what you want.

Regards

Mark
Title: Re: Should I be able to receive subnet broadcast UDP?
Post by: aaronlawrence on March 18, 2010, 02:42:55 AM
Thanks, appears to work (withOUT NETBIOS)
(Edited that is works without netbios, d'oh!)