Skip to content

UDP broadcasts do not reach bound pcbs #6

@tabascoeye

Description

@tabascoeye

When a UDP broadcast is received (destination IP 255.255.255.255), the udp input function checks:

  1. is it a broadcast ==> yes
    AND
  2. is the local pcb bound to INADDR_ANY?
    OR
  3. does the destination IP match into the local IP/netmask?

So when you have bound you udp socket to a specific IP instead of INADDR_ANY, it will never receive UDP broadcasts because 2) and 3) will eval to false.

==> a third check is needed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions