aboutsummaryrefslogtreecommitdiff
path: root/slirp/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'slirp/udp.c')
-rw-r--r--slirp/udp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/slirp/udp.c b/slirp/udp.c
index 67a05090fc..2dd51a39fe 100644
--- a/slirp/udp.c
+++ b/slirp/udp.c
@@ -153,6 +153,14 @@ udp_input(m, iphlen)
goto bad;
}
+ /*
+ * handle TFTP
+ */
+ if (ntohs(uh->uh_dport) == TFTP_SERVER) {
+ tftp_input(m);
+ goto bad;
+ }
+
/*
* Locate pcb for datagram.
*/