tftp.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. /*
  2. * Copyright 1994, 1995, 2000 Neil Russell.
  3. * (See License)
  4. * Copyright 2000, 2001 DENX Software Engineering, Wolfgang Denk, wd@denx.de
  5. */
  6. #include <common.h>
  7. #include <command.h>
  8. #include <net.h>
  9. #include "tftp.h"
  10. #include "bootp.h"
  11. #undef ET_DEBUG
  12. #if defined(CONFIG_CMD_NET)
  13. #define WELL_KNOWN_PORT 69 /* Well known TFTP port # */
  14. #define TIMEOUT 5UL /* Seconds to timeout for a lost pkt */
  15. #ifndef CONFIG_NET_RETRY_COUNT
  16. # define TIMEOUT_COUNT 10 /* # of timeouts before giving up */
  17. #else
  18. # define TIMEOUT_COUNT (CONFIG_NET_RETRY_COUNT * 2)
  19. #endif
  20. /* (for checking the image size) */
  21. #define HASHES_PER_LINE 65 /* Number of "loading" hashes per line */
  22. /*
  23. * TFTP operations.
  24. */
  25. #define TFTP_RRQ 1
  26. #define TFTP_WRQ 2
  27. #define TFTP_DATA 3
  28. #define TFTP_ACK 4
  29. #define TFTP_ERROR 5
  30. #define TFTP_OACK 6
  31. static IPaddr_t TftpServerIP;
  32. static int TftpServerPort; /* The UDP port at their end */
  33. static int TftpOurPort; /* The UDP port at our end */
  34. static int TftpTimeoutCount;
  35. static ulong TftpBlock; /* packet sequence number */
  36. static ulong TftpLastBlock; /* last packet sequence number received */
  37. static ulong TftpBlockWrap; /* count of sequence number wraparounds */
  38. static ulong TftpBlockWrapOffset; /* memory offset due to wrapping */
  39. static int TftpState;
  40. #define STATE_RRQ 1
  41. #define STATE_DATA 2
  42. #define STATE_TOO_LARGE 3
  43. #define STATE_BAD_MAGIC 4
  44. #define STATE_OACK 5
  45. #define TFTP_BLOCK_SIZE 512 /* default TFTP block size */
  46. #define TFTP_SEQUENCE_SIZE ((ulong)(1<<16)) /* sequence number is 16 bit */
  47. #define DEFAULT_NAME_LEN (8 + 4 + 1)
  48. static char default_filename[DEFAULT_NAME_LEN];
  49. #ifndef CONFIG_TFTP_FILE_NAME_MAX_LEN
  50. #define MAX_LEN 128
  51. #else
  52. #define MAX_LEN CONFIG_TFTP_FILE_NAME_MAX_LEN
  53. #endif
  54. static char tftp_filename[MAX_LEN];
  55. #ifdef CFG_DIRECT_FLASH_TFTP
  56. extern flash_info_t flash_info[];
  57. #endif
  58. /* 512 is poor choice for ethernet, MTU is typically 1500.
  59. * Minus eth.hdrs thats 1468. Can get 2x better throughput with
  60. * almost-MTU block sizes. At least try... fall back to 512 if need be.
  61. */
  62. #define TFTP_MTU_BLOCKSIZE 1468
  63. static unsigned short TftpBlkSize=TFTP_BLOCK_SIZE;
  64. static unsigned short TftpBlkSizeOption=TFTP_MTU_BLOCKSIZE;
  65. #ifdef CONFIG_MCAST_TFTP
  66. #include <malloc.h>
  67. #define MTFTP_BITMAPSIZE 0x1000
  68. static unsigned *Bitmap;
  69. static int PrevBitmapHole,Mapsize=MTFTP_BITMAPSIZE;
  70. static uchar ProhibitMcast=0, MasterClient=0;
  71. static uchar Multicast=0;
  72. extern IPaddr_t Mcast_addr;
  73. static int Mcast_port;
  74. static ulong TftpEndingBlock; /* can get 'last' block before done..*/
  75. static void parse_multicast_oack(char *pkt,int len);
  76. static void
  77. mcast_cleanup(void)
  78. {
  79. if (Mcast_addr) eth_mcast_join(Mcast_addr, 0);
  80. if (Bitmap) free(Bitmap);
  81. Bitmap=NULL;
  82. Mcast_addr = Multicast = Mcast_port = 0;
  83. TftpEndingBlock = -1;
  84. }
  85. #endif /* CONFIG_MCAST_TFTP */
  86. static __inline__ void
  87. store_block (unsigned block, uchar * src, unsigned len)
  88. {
  89. ulong offset = block * TftpBlkSize + TftpBlockWrapOffset;
  90. ulong newsize = offset + len;
  91. #ifdef CFG_DIRECT_FLASH_TFTP
  92. int i, rc = 0;
  93. for (i=0; i<CFG_MAX_FLASH_BANKS; i++) {
  94. /* start address in flash? */
  95. if (load_addr + offset >= flash_info[i].start[0]) {
  96. rc = 1;
  97. break;
  98. }
  99. }
  100. if (rc) { /* Flash is destination for this packet */
  101. rc = flash_write ((char *)src, (ulong)(load_addr+offset), len);
  102. if (rc) {
  103. flash_perror (rc);
  104. NetState = NETLOOP_FAIL;
  105. return;
  106. }
  107. }
  108. else
  109. #endif /* CFG_DIRECT_FLASH_TFTP */
  110. {
  111. (void)memcpy((void *)(load_addr + offset), src, len);
  112. }
  113. #ifdef CONFIG_MCAST_TFTP
  114. if (Multicast)
  115. ext2_set_bit(block, Bitmap);
  116. #endif
  117. if (NetBootFileXferSize < newsize)
  118. NetBootFileXferSize = newsize;
  119. }
  120. static void TftpSend (void);
  121. static void TftpTimeout (void);
  122. /**********************************************************************/
  123. static void
  124. TftpSend (void)
  125. {
  126. volatile uchar * pkt;
  127. volatile uchar * xp;
  128. int len = 0;
  129. volatile ushort *s;
  130. #ifdef CONFIG_MCAST_TFTP
  131. /* Multicast TFTP.. non-MasterClients do not ACK data. */
  132. if (Multicast
  133. && (TftpState == STATE_DATA)
  134. && (MasterClient == 0))
  135. return;
  136. #endif
  137. /*
  138. * We will always be sending some sort of packet, so
  139. * cobble together the packet headers now.
  140. */
  141. pkt = NetTxPacket + NetEthHdrSize() + IP_HDR_SIZE;
  142. switch (TftpState) {
  143. case STATE_RRQ:
  144. xp = pkt;
  145. s = (ushort *)pkt;
  146. *s++ = htons(TFTP_RRQ);
  147. pkt = (uchar *)s;
  148. strcpy ((char *)pkt, tftp_filename);
  149. pkt += strlen(tftp_filename) + 1;
  150. strcpy ((char *)pkt, "octet");
  151. pkt += 5 /*strlen("octet")*/ + 1;
  152. strcpy ((char *)pkt, "timeout");
  153. pkt += 7 /*strlen("timeout")*/ + 1;
  154. sprintf((char *)pkt, "%d", TIMEOUT);
  155. #ifdef ET_DEBUG
  156. printf("send option \"timeout %s\"\n", (char *)pkt);
  157. #endif
  158. pkt += strlen((char *)pkt) + 1;
  159. /* try for more effic. blk size */
  160. pkt += sprintf((char *)pkt,"blksize%c%d%c",
  161. 0,TftpBlkSizeOption,0);
  162. #ifdef CONFIG_MCAST_TFTP
  163. /* Check all preconditions before even trying the option */
  164. if (!ProhibitMcast
  165. && (Bitmap=malloc(Mapsize))
  166. && eth_get_dev()->mcast) {
  167. free(Bitmap);
  168. Bitmap=NULL;
  169. pkt += sprintf((char *)pkt,"multicast%c%c",0,0);
  170. }
  171. #endif /* CONFIG_MCAST_TFTP */
  172. len = pkt - xp;
  173. break;
  174. case STATE_OACK:
  175. #ifdef CONFIG_MCAST_TFTP
  176. /* My turn! Start at where I need blocks I missed.*/
  177. if (Multicast)
  178. TftpBlock=ext2_find_next_zero_bit(Bitmap,(Mapsize*8),0);
  179. /*..falling..*/
  180. #endif
  181. case STATE_DATA:
  182. xp = pkt;
  183. s = (ushort *)pkt;
  184. *s++ = htons(TFTP_ACK);
  185. *s++ = htons(TftpBlock);
  186. pkt = (uchar *)s;
  187. len = pkt - xp;
  188. break;
  189. case STATE_TOO_LARGE:
  190. xp = pkt;
  191. s = (ushort *)pkt;
  192. *s++ = htons(TFTP_ERROR);
  193. *s++ = htons(3);
  194. pkt = (uchar *)s;
  195. strcpy ((char *)pkt, "File too large");
  196. pkt += 14 /*strlen("File too large")*/ + 1;
  197. len = pkt - xp;
  198. break;
  199. case STATE_BAD_MAGIC:
  200. xp = pkt;
  201. s = (ushort *)pkt;
  202. *s++ = htons(TFTP_ERROR);
  203. *s++ = htons(2);
  204. pkt = (uchar *)s;
  205. strcpy ((char *)pkt, "File has bad magic");
  206. pkt += 18 /*strlen("File has bad magic")*/ + 1;
  207. len = pkt - xp;
  208. break;
  209. }
  210. NetSendUDPPacket(NetServerEther, TftpServerIP, TftpServerPort, TftpOurPort, len);
  211. }
  212. static void
  213. TftpHandler (uchar * pkt, unsigned dest, unsigned src, unsigned len)
  214. {
  215. ushort proto;
  216. ushort *s;
  217. int i;
  218. if (dest != TftpOurPort) {
  219. #ifdef CONFIG_MCAST_TFTP
  220. if (Multicast
  221. && (!Mcast_port || (dest != Mcast_port)))
  222. #endif
  223. return;
  224. }
  225. if (TftpState != STATE_RRQ && src != TftpServerPort) {
  226. return;
  227. }
  228. if (len < 2) {
  229. return;
  230. }
  231. len -= 2;
  232. /* warning: don't use increment (++) in ntohs() macros!! */
  233. s = (ushort *)pkt;
  234. proto = *s++;
  235. pkt = (uchar *)s;
  236. switch (ntohs(proto)) {
  237. case TFTP_RRQ:
  238. case TFTP_WRQ:
  239. case TFTP_ACK:
  240. break;
  241. default:
  242. break;
  243. case TFTP_OACK:
  244. #ifdef ET_DEBUG
  245. printf("Got OACK: %s %s\n", pkt, pkt+strlen(pkt)+1);
  246. #endif
  247. TftpState = STATE_OACK;
  248. TftpServerPort = src;
  249. /*
  250. * Check for 'blksize' option.
  251. * Careful: "i" is signed, "len" is unsigned, thus
  252. * something like "len-8" may give a *huge* number
  253. */
  254. for (i=0; i+8<len; i++) {
  255. if (strcmp ((char*)pkt+i,"blksize") == 0) {
  256. TftpBlkSize = (unsigned short)
  257. simple_strtoul((char*)pkt+i+8,NULL,10);
  258. #ifdef ET_DEBUG
  259. printf ("Blocksize ack: %s, %d\n",
  260. (char*)pkt+i+8,TftpBlkSize);
  261. #endif
  262. break;
  263. }
  264. }
  265. #ifdef CONFIG_MCAST_TFTP
  266. parse_multicast_oack((char *)pkt,len-1);
  267. if ((Multicast) && (!MasterClient))
  268. TftpState = STATE_DATA; /* passive.. */
  269. else
  270. #endif
  271. TftpSend (); /* Send ACK */
  272. break;
  273. case TFTP_DATA:
  274. if (len < 2)
  275. return;
  276. len -= 2;
  277. TftpBlock = ntohs(*(ushort *)pkt);
  278. /*
  279. * RFC1350 specifies that the first data packet will
  280. * have sequence number 1. If we receive a sequence
  281. * number of 0 this means that there was a wrap
  282. * around of the (16 bit) counter.
  283. */
  284. if (TftpBlock == 0) {
  285. TftpBlockWrap++;
  286. TftpBlockWrapOffset += TftpBlkSize * TFTP_SEQUENCE_SIZE;
  287. printf ("\n\t %lu MB received\n\t ", TftpBlockWrapOffset>>20);
  288. } else {
  289. if (((TftpBlock - 1) % 10) == 0) {
  290. putc ('#');
  291. } else if ((TftpBlock % (10 * HASHES_PER_LINE)) == 0) {
  292. puts ("\n\t ");
  293. }
  294. }
  295. #ifdef ET_DEBUG
  296. if (TftpState == STATE_RRQ) {
  297. puts ("Server did not acknowledge timeout option!\n");
  298. }
  299. #endif
  300. if (TftpState == STATE_RRQ || TftpState == STATE_OACK) {
  301. /* first block received */
  302. TftpState = STATE_DATA;
  303. TftpServerPort = src;
  304. TftpLastBlock = 0;
  305. TftpBlockWrap = 0;
  306. TftpBlockWrapOffset = 0;
  307. #ifdef CONFIG_MCAST_TFTP
  308. if (Multicast) { /* start!=1 common if mcast */
  309. TftpLastBlock = TftpBlock - 1;
  310. } else
  311. #endif
  312. if (TftpBlock != 1) { /* Assertion */
  313. printf ("\nTFTP error: "
  314. "First block is not block 1 (%ld)\n"
  315. "Starting again\n\n",
  316. TftpBlock);
  317. NetStartAgain ();
  318. break;
  319. }
  320. }
  321. if (TftpBlock == TftpLastBlock) {
  322. /*
  323. * Same block again; ignore it.
  324. */
  325. break;
  326. }
  327. TftpLastBlock = TftpBlock;
  328. NetSetTimeout (TIMEOUT * CFG_HZ, TftpTimeout);
  329. store_block (TftpBlock - 1, pkt + 2, len);
  330. /*
  331. * Acknoledge the block just received, which will prompt
  332. * the server for the next one.
  333. */
  334. #ifdef CONFIG_MCAST_TFTP
  335. /* if I am the MasterClient, actively calculate what my next
  336. * needed block is; else I'm passive; not ACKING
  337. */
  338. if (Multicast) {
  339. if (len < TftpBlkSize) {
  340. TftpEndingBlock = TftpBlock;
  341. } else if (MasterClient) {
  342. TftpBlock = PrevBitmapHole =
  343. ext2_find_next_zero_bit(
  344. Bitmap,
  345. (Mapsize*8),
  346. PrevBitmapHole);
  347. if (TftpBlock > ((Mapsize*8) - 1)) {
  348. printf ("tftpfile too big\n");
  349. /* try to double it and retry */
  350. Mapsize<<=1;
  351. mcast_cleanup();
  352. NetStartAgain ();
  353. return;
  354. }
  355. TftpLastBlock = TftpBlock;
  356. }
  357. }
  358. #endif
  359. TftpSend ();
  360. #ifdef CONFIG_MCAST_TFTP
  361. if (Multicast) {
  362. if (MasterClient && (TftpBlock >= TftpEndingBlock)) {
  363. puts ("\nMulticast tftp done\n");
  364. mcast_cleanup();
  365. NetState = NETLOOP_SUCCESS;
  366. }
  367. }
  368. else
  369. #endif
  370. if (len < TftpBlkSize) {
  371. /*
  372. * We received the whole thing. Try to
  373. * run it.
  374. */
  375. puts ("\ndone\n");
  376. NetState = NETLOOP_SUCCESS;
  377. }
  378. break;
  379. case TFTP_ERROR:
  380. printf ("\nTFTP error: '%s' (%d)\n",
  381. pkt + 2, ntohs(*(ushort *)pkt));
  382. puts ("Starting again\n\n");
  383. #ifdef CONFIG_MCAST_TFTP
  384. mcast_cleanup();
  385. #endif
  386. NetStartAgain ();
  387. break;
  388. }
  389. }
  390. static void
  391. TftpTimeout (void)
  392. {
  393. if (++TftpTimeoutCount > TIMEOUT_COUNT) {
  394. puts ("\nRetry count exceeded; starting again\n");
  395. #ifdef CONFIG_MCAST_TFTP
  396. mcast_cleanup();
  397. #endif
  398. NetStartAgain ();
  399. } else {
  400. puts ("T ");
  401. NetSetTimeout (TIMEOUT * CFG_HZ, TftpTimeout);
  402. TftpSend ();
  403. }
  404. }
  405. void
  406. TftpStart (void)
  407. {
  408. #ifdef CONFIG_TFTP_PORT
  409. char *ep; /* Environment pointer */
  410. #endif
  411. TftpServerIP = NetServerIP;
  412. if (BootFile[0] == '\0') {
  413. sprintf(default_filename, "%02lX%02lX%02lX%02lX.img",
  414. NetOurIP & 0xFF,
  415. (NetOurIP >> 8) & 0xFF,
  416. (NetOurIP >> 16) & 0xFF,
  417. (NetOurIP >> 24) & 0xFF );
  418. strncpy(tftp_filename, default_filename, MAX_LEN);
  419. tftp_filename[MAX_LEN-1] = 0;
  420. printf ("*** Warning: no boot file name; using '%s'\n",
  421. tftp_filename);
  422. } else {
  423. char *p = strchr (BootFile, ':');
  424. if (p == NULL) {
  425. strncpy(tftp_filename, BootFile, MAX_LEN);
  426. tftp_filename[MAX_LEN-1] = 0;
  427. } else {
  428. *p++ = '\0';
  429. TftpServerIP = string_to_ip (BootFile);
  430. strncpy(tftp_filename, p, MAX_LEN);
  431. tftp_filename[MAX_LEN-1] = 0;
  432. }
  433. }
  434. #if defined(CONFIG_NET_MULTI)
  435. printf ("Using %s device\n", eth_get_name());
  436. #endif
  437. puts ("TFTP from server "); print_IPaddr (TftpServerIP);
  438. puts ("; our IP address is "); print_IPaddr (NetOurIP);
  439. /* Check if we need to send across this subnet */
  440. if (NetOurGatewayIP && NetOurSubnetMask) {
  441. IPaddr_t OurNet = NetOurIP & NetOurSubnetMask;
  442. IPaddr_t ServerNet = TftpServerIP & NetOurSubnetMask;
  443. if (OurNet != ServerNet) {
  444. puts ("; sending through gateway ");
  445. print_IPaddr (NetOurGatewayIP) ;
  446. }
  447. }
  448. putc ('\n');
  449. printf ("Filename '%s'.", tftp_filename);
  450. if (NetBootFileSize) {
  451. printf (" Size is 0x%x Bytes = ", NetBootFileSize<<9);
  452. print_size (NetBootFileSize<<9, "");
  453. }
  454. putc ('\n');
  455. printf ("Load address: 0x%lx\n", load_addr);
  456. puts ("Loading: *\b");
  457. NetSetTimeout (TIMEOUT * CFG_HZ, TftpTimeout);
  458. NetSetHandler (TftpHandler);
  459. TftpServerPort = WELL_KNOWN_PORT;
  460. TftpTimeoutCount = 0;
  461. TftpState = STATE_RRQ;
  462. /* Use a pseudo-random port unless a specific port is set */
  463. TftpOurPort = 1024 + (get_timer(0) % 3072);
  464. #ifdef CONFIG_TFTP_PORT
  465. if ((ep = getenv("tftpdstp")) != NULL) {
  466. TftpServerPort = simple_strtol(ep, NULL, 10);
  467. }
  468. if ((ep = getenv("tftpsrcp")) != NULL) {
  469. TftpOurPort= simple_strtol(ep, NULL, 10);
  470. }
  471. #endif
  472. TftpBlock = 0;
  473. /* zero out server ether in case the server ip has changed */
  474. memset(NetServerEther, 0, 6);
  475. /* Revert TftpBlkSize to dflt */
  476. TftpBlkSize = TFTP_BLOCK_SIZE;
  477. #ifdef CONFIG_MCAST_TFTP
  478. mcast_cleanup();
  479. #endif
  480. TftpSend ();
  481. }
  482. #ifdef CONFIG_MCAST_TFTP
  483. /* Credits: atftp project.
  484. */
  485. /* pick up BcastAddr, Port, and whether I am [now] the master-client. *
  486. * Frame:
  487. * +-------+-----------+---+-------~~-------+---+
  488. * | opc | multicast | 0 | addr, port, mc | 0 |
  489. * +-------+-----------+---+-------~~-------+---+
  490. * The multicast addr/port becomes what I listen to, and if 'mc' is '1' then
  491. * I am the new master-client so must send ACKs to DataBlocks. If I am not
  492. * master-client, I'm a passive client, gathering what DataBlocks I may and
  493. * making note of which ones I got in my bitmask.
  494. * In theory, I never go from master->passive..
  495. * .. this comes in with pkt already pointing just past opc
  496. */
  497. static void parse_multicast_oack(char *pkt, int len)
  498. {
  499. int i;
  500. IPaddr_t addr;
  501. char *mc_adr, *port, *mc;
  502. mc_adr=port=mc=NULL;
  503. /* march along looking for 'multicast\0', which has to start at least
  504. * 14 bytes back from the end.
  505. */
  506. for (i=0;i<len-14;i++)
  507. if (strcmp (pkt+i,"multicast") == 0)
  508. break;
  509. if (i >= (len-14)) /* non-Multicast OACK, ign. */
  510. return;
  511. i+=10; /* strlen multicast */
  512. mc_adr = pkt+i;
  513. for (;i<len;i++) {
  514. if (*(pkt+i) == ',') {
  515. *(pkt+i) = '\0';
  516. if (port) {
  517. mc = pkt+i+1;
  518. break;
  519. } else {
  520. port = pkt+i+1;
  521. }
  522. }
  523. }
  524. if (!port || !mc_adr || !mc ) return;
  525. if (Multicast && MasterClient) {
  526. printf ("I got a OACK as master Client, WRONG!\n");
  527. return;
  528. }
  529. /* ..I now accept packets destined for this MCAST addr, port */
  530. if (!Multicast) {
  531. if (Bitmap) {
  532. printf ("Internal failure! no mcast.\n");
  533. free(Bitmap);
  534. Bitmap=NULL;
  535. ProhibitMcast=1;
  536. return ;
  537. }
  538. /* I malloc instead of pre-declare; so that if the file ends
  539. * up being too big for this bitmap I can retry
  540. */
  541. if (!(Bitmap = malloc (Mapsize))) {
  542. printf ("No Bitmap, no multicast. Sorry.\n");
  543. ProhibitMcast=1;
  544. return;
  545. }
  546. memset (Bitmap,0,Mapsize);
  547. PrevBitmapHole = 0;
  548. Multicast = 1;
  549. }
  550. addr = string_to_ip(mc_adr);
  551. if (Mcast_addr != addr) {
  552. if (Mcast_addr)
  553. eth_mcast_join(Mcast_addr, 0);
  554. if (eth_mcast_join(Mcast_addr=addr, 1)) {
  555. printf ("Fail to set mcast, revert to TFTP\n");
  556. ProhibitMcast=1;
  557. mcast_cleanup();
  558. NetStartAgain();
  559. }
  560. }
  561. MasterClient = (unsigned char)simple_strtoul((char *)mc,NULL,10);
  562. Mcast_port = (unsigned short)simple_strtoul(port,NULL,10);
  563. printf ("Multicast: %s:%d [%d]\n", mc_adr, Mcast_port, MasterClient);
  564. return;
  565. }
  566. #endif /* Multicast TFTP */
  567. #endif