net: add a generic udp protocol

This commit adds a generic udp protocol framework in the
network loop. So protocol based on udp may be implemented
without modifying the network loop (for example custom
wait magic packet).

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Philippe Reynes
2020-09-18 14:13:00 +02:00
committed by Tom Rini
parent cafaa301c9
commit b43ea1bf18
7 changed files with 142 additions and 2 deletions

View File

@@ -8,6 +8,12 @@ menuconfig NET
if NET
config PROT_UDP
bool "Enable generic udp framework"
help
Enable a generic udp framework that allows defining a custom
handler for udp protocol.
config BOOTP_SEND_HOSTNAME
bool "Send hostname to DNS server"
help