#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-tftp.c,v 1.33 2002-12-11 07:14:09 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-tftp.c,v 1.34 2003-02-19 08:01:36 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
fputs(" \"", stdout);
i = fn_print(p, snapend);
putchar('"');
+
+ /* Print the mode and any options */
+ while ((p = strchr(p, '\0')) != NULL) {
+ if (length <= ((unsigned)p - (unsigned)&tp->th_block))
+ break;
+ p++;
+ if (*p != '\0') {
+ putchar(' ');
+ fn_print(p, snapend);
+ }
+ }
+
if (i)
goto trunc;
break;