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