Author Topic: Should I be able to receive subnet broadcast UDP?  (Read 7856 times)

Offline aaronlawrence

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Should I be able to receive subnet broadcast UDP?
« 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?
« Last Edit: March 01, 2010, 10:48:13 PM by aaronlawrence »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3234
    • View Profile
    • uTasker
Re: Should I be able to receive subnet broadcast UDP?
« Reply #1 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

Offline aaronlawrence

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Should I be able to receive subnet broadcast UDP?
« Reply #2 on: March 18, 2010, 02:42:55 AM »
Thanks, appears to work (withOUT NETBIOS)
(Edited that is works without netbios, d'oh!)
« Last Edit: March 20, 2010, 01:21:38 AM by aaronlawrence »