[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #9169] Allows multicast packets through udp input la
From: |
Dirk Ziegelmeier |
Subject: |
[lwip-devel] [patch #9169] Allows multicast packets through udp input layer |
Date: |
Tue, 22 Nov 2016 19:37:36 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0 |
Follow-up Comment #4, patch #9169 (project lwip):
[...]
Why not have it configured to be able to handle both cases?
Because you can easily achieve this by filtering the destination address as
first thing in your reception routine.
Moving this capability to lwIP is possible and will make *your* application
smaller and easier.
But:
- it will make *all other* applications slightly slower due to additional
checks
- will make the udp code more complicated / more difficult to maintain for a
corner-case
- will add an unknown/non-standard semantics to udp_connect() noone knows
about and noone expects to work like this
- we are in a lightweight stack - we do not want so solve every possible
application case in the stack
Last, especially patch #9169 introduces strange behavior by comparing
pcb->remote_ip with a DESTINATION ip instead of source ip
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?9169>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/