aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rip.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>1998-09-27 22:12:47 +0000
committerGerald Combs <gerald@wireshark.org>1998-09-27 22:12:47 +0000
commit2e7e493198543e3fdb4b404763b02a2ad22d180e (patch)
tree01aa8a843d84f24a66f7bd9af00e105efe1ffcdc /packet-rip.c
parent385699d4310480e19aecf08dcff23e792667747a (diff)
Merged in a _huge_ patch from Guy Harris. It adds a time stap column,
generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. svn path=/trunk/; revision=31
Diffstat (limited to 'packet-rip.c')
-rw-r--r--packet-rip.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-rip.c b/packet-rip.c
index 54eb027741..589061fdd1 100644
--- a/packet-rip.c
+++ b/packet-rip.c
@@ -2,7 +2,7 @@
* Routines for RIPv1 and RIPv2 packet disassembly
* (c) Copyright Hannes R. Boehm <hannes@boehm.org>
*
- * $Id: packet-rip.c,v 1.2 1998/09/16 03:22:10 gerald Exp $
+ * $Id: packet-rip.c,v 1.3 1998/09/27 22:12:38 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -86,9 +86,9 @@ dissect_rip(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
}
- if (fd->win_info[0]) {
- strcpy(fd->win_info[3], version[rip_header->version] );
- sprintf(fd->win_info[4], "%s", packet_type[rip_header->command]);
+ if (fd->win_info[COL_NUM]) {
+ strcpy(fd->win_info[COL_PROTOCOL], version[rip_header->version] );
+ sprintf(fd->win_info[COL_INFO], "%s", packet_type[rip_header->command]);
}
if (tree) {
@@ -138,7 +138,7 @@ dissect_rip(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
ip_to_str((guint8 *) &(rip_vektor.next_hop)));
}
- add_item_to_tree(rip_vektor_tree, offset + 12 , 4, "Metric: %d", ntohl(rip_vektor.metric));
+ add_item_to_tree(rip_vektor_tree, offset + 12 , 4, "Metric: %ld", (long)ntohl(rip_vektor.metric));
offset += RIP_VEKTOR_LENGTH;
};