diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-08-24 21:57:12 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-08-24 21:57:12 +0000 |
commit | c7f746434f28c06faf9f3ebaac4973502468c4d3 (patch) | |
tree | 969225c7f2f83a8f0a1956082c3200a00191b385 /slirp/udp.c | |
parent | 60e336dbb837ef4d5053433f9ee391feb102be36 (diff) | |
download | qemu-c7f746434f28c06faf9f3ebaac4973502468c4d3.zip qemu-c7f746434f28c06faf9f3ebaac4973502468c4d3.tar.gz qemu-c7f746434f28c06faf9f3ebaac4973502468c4d3.tar.bz2 |
TFTP support (Magnus Damm)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1050 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/udp.c')
-rw-r--r-- | slirp/udp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/slirp/udp.c b/slirp/udp.c index 67a0509..2dd51a3 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. */ |