summaryrefslogtreecommitdiff
path: root/contrib/tcpdump/print-bootp.c
diff options
context:
space:
mode:
authorBill Fenner <fenner@FreeBSD.org>1998-09-15 19:46:59 +0000
committerBill Fenner <fenner@FreeBSD.org>1998-09-15 19:46:59 +0000
commit699fc31439c6d227def4f2fdf7b4f4c5f3d02828 (patch)
tree0f65e43947993b82a8cd54d6bbd653f4940945a5 /contrib/tcpdump/print-bootp.c
parent90dc276c84c804d608fad6d71f9daf536f2203a3 (diff)
Notes
Diffstat (limited to 'contrib/tcpdump/print-bootp.c')
-rw-r--r--contrib/tcpdump/print-bootp.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/contrib/tcpdump/print-bootp.c b/contrib/tcpdump/print-bootp.c
index 425c11c4ed17..c9eb72b8f84a 100644
--- a/contrib/tcpdump/print-bootp.c
+++ b/contrib/tcpdump/print-bootp.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996
+ * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
* The Regents of the University of California. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -22,7 +22,7 @@
*/
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: print-bootp.c,v 1.43 96/09/26 23:36:42 leres Exp $ (LBL)";
+ "@(#) $Header: print-bootp.c,v 1.46 98/07/18 13:33:58 leres Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -39,6 +39,9 @@ struct rtentry;
#include <net/ethernet.h>
#include <ctype.h>
+#ifdef HAVE_MEMORY_H
+#include <memory.h>
+#endif
#include <stdio.h>
#include <string.h>
@@ -145,6 +148,7 @@ bootp_print(register const u_char *cp, u_int length,
fputs(tstr + 1, stdout);
return;
}
+ putchar('"');
}
TCHECK2(bp->bp_sname[0], 1); /* check first char only */
if (*bp->bp_file) {
@@ -154,6 +158,7 @@ bootp_print(register const u_char *cp, u_int length,
fputs(tstr + 1, stdout);
return;
}
+ putchar('"');
}
/* Decode the vendor buffer */