diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 1998-09-17 03:12:28 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 1998-09-17 03:12:28 +0000 |
commit | ff28af3608a4b51dea4d96fc907ffb0e5f0f02f1 (patch) | |
tree | 2f123f7fccaa41be86444a370706bb390d0a6ca8 /packet-ip.c | |
parent | 0d8e908a4db8a8a4cde807e1b6feb5c9511d349e (diff) |
* Added Mike Hall's TCP reconstruction code.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ip.c')
-rw-r--r-- | packet-ip.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packet-ip.c b/packet-ip.c index 7db501df33..a2cc35bc61 100644 --- a/packet-ip.c +++ b/packet-ip.c @@ -1,7 +1,7 @@ /* packet-ip.c * Routines for IP and miscellaneous IP protocol packet disassembly * - * $Id: packet-ip.c,v 1.2 1998/09/16 03:22:04 gerald Exp $ + * $Id: packet-ip.c,v 1.3 1998/09/17 03:12:27 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -45,6 +45,8 @@ #include "etypes.h" #include "resolv.h" +extern packet_info pi; + void dissect_ip(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { e_ip iph; @@ -126,6 +128,13 @@ dissect_ip(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { get_hostname(iph.ip_dst)); } + pi.srcip = ip_to_str( (guint8 *) &iph.ip_src); + pi.destip = ip_to_str( (guint8 *) &iph.ip_dst); + pi.ipproto = iph.ip_p; + pi.iplen = iph.ip_len; + pi.iphdrlen = iph.ip_hl; + pi.ip_src = iph.ip_src; + offset += iph.ip_hl * 4; switch (iph.ip_p) { case IP_PROTO_ICMP: |