]> Git Repo - qemu.git/commit
slirp: Use strcasecmp() to check tftp mode, tsize
authorSergei Gavrikov <[email protected]>
Wed, 12 Jan 2011 13:57:18 +0000 (15:57 +0200)
committerEdgar E. Iglesias <[email protected]>
Thu, 13 Jan 2011 10:38:44 +0000 (11:38 +0100)
commitfacf1a60f29853590073f321e3cba491a5ee097a
tree986ec1042e6440a7745ba4a327f607624190df28
parent4508d81a788f451c83604e1d0033243e191d71a7
slirp: Use strcasecmp() to check tftp mode, tsize

According to RFC 1350 (TFTP Revision 2) the mode field can contain any
combination of upper and lower case; also RFC 2349 propagates that the
transfer size option ("tsize") is case in-sensitive too.

Current implementation of embedded TFTP server missed that what does
mess some TFTP clients. Fixed by using STRCASECMP(3) in the required
places.

Signed-off-by: Sergei Gavrikov <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Edgar E. Iglesias <[email protected]>
slirp/tftp.c
This page took 0.026069 seconds and 4 git commands to generate.