* Routines for BOOTP/DHCP packet disassembly
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-bootp.c,v 1.37 2000/07/25 21:25:59 guy Exp $
+ * $Id: packet-bootp.c,v 1.41 2000/11/17 21:00:35 gram Exp $
*
* The information used comes from:
* RFC 951: Bootstrap Protocol
# include <sys/types.h>
#endif
+#include <string.h>
#include <glib.h>
#include "packet.h"
#include "packet-arp.h"
guint32 ip_addr;
const char *dhcp_type;
+ OLD_CHECK_DISPLAY_AS_DATA(proto_bootp, pd, offset, fd, tree);
+
dhcp_type = NULL;
if (check_col(fd, COL_PROTOCOL))
pd[offset+2], pd[offset+1]));
}
else {
- proto_tree_add_bytes(bp_tree, hf_bootp_hw_addr, NullTVB,
- offset + 28, 0, NULL);
+ proto_tree_add_text(bp_tree, NullTVB,
+ offset + 28, 0, "Client address not given");
}
/* The server host name is optional */
void
proto_reg_handoff_bootp(void)
{
- dissector_add("udp.port", UDP_PORT_BOOTPS, dissect_bootp);
+ old_dissector_add("udp.port", UDP_PORT_BOOTPS, dissect_bootp);
}