xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | TFTP |
| 5 | TFTP RRQ |
| 6 | </keywords> |
| 7 | </info> |
| 8 | |
| 9 | # |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | A chunk of data which exactly fits into |
| 14 | a 512 byte TFTP block, testing a boundary |
| 15 | condition in the TFTP receive code. |
| 16 | 789ABCDEF |
| 17 | 123456789ABCDEF |
| 18 | 123456789ABCDEF |
| 19 | 123456789ABCDEF |
| 20 | 123456789ABCDEF |
| 21 | 123456789ABCDEF |
| 22 | 123456789ABCDEF |
| 23 | 123456789ABCDEF |
| 24 | 123456789ABCDEF |
| 25 | 123456789ABCDEF |
| 26 | 123456789ABCDEF |
| 27 | 123456789ABCDEF |
| 28 | 123456789ABCDEF |
| 29 | 123456789ABCDEF |
| 30 | 123456789ABCDEF |
| 31 | 123456789ABCDEF |
| 32 | 123456789ABCDEF |
| 33 | 123456789ABCDEF |
| 34 | 123456789ABCDEF |
| 35 | 123456789ABCDEF |
| 36 | 123456789ABCDEF |
| 37 | 123456789ABCDEF |
| 38 | 123456789ABCDEF |
| 39 | 123456789ABCDEF |
| 40 | 123456789ABCDEF |
| 41 | </data> |
| 42 | </reply> |
| 43 | |
| 44 | # |
| 45 | # Client-side |
| 46 | <client> |
| 47 | <server> |
| 48 | tftp |
| 49 | </server> |
| 50 | <name> |
| 51 | TFTP retrieve of boundary case 512 byte file |
| 52 | </name> |
| 53 | <command> |
| 54 | tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER |
| 55 | </command> |
| 56 | </client> |
| 57 | |
| 58 | # |
| 59 | # Verify pseudo protocol after the test has been "shot" |
| 60 | <verify> |
| 61 | <protocol> |
| 62 | opcode = 1 |
| 63 | mode = octet |
| 64 | tsize = 0 |
| 65 | blksize = 512 |
| 66 | timeout = 6 |
| 67 | filename = /%TESTNUMBER |
| 68 | </protocol> |
| 69 | </verify> |
| 70 | </testcase> |