diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-12-14 00:27:29 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-12-14 00:27:29 +0000 |
commit | e3b97464237f5fa2fb580be289cbad30d15ac2b7 (patch) | |
tree | 70a22470932187d9c00c15a3bfe2f660a4b3b642 /packet-gre.c | |
parent | 7649c5dc81e1759232888de175b6d85f7ac347b6 (diff) |
Merge Jerry's version with a version I'd done.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1317 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-gre.c')
-rw-r--r-- | packet-gre.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/packet-gre.c b/packet-gre.c index fa4e82d252..f7a8b2146d 100644 --- a/packet-gre.c +++ b/packet-gre.c @@ -2,7 +2,7 @@ * Routines for the Generic Routing Encapsulation (GRE) protocol * Brad Robel-Forrest <brad.robel-forrest@watchguard.com> * - * $Id: packet-gre.c,v 1.12 1999/12/12 03:05:56 guy Exp $ + * $Id: packet-gre.c,v 1.13 1999/12/14 00:27:29 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -198,17 +198,18 @@ dissect_gre(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { } } - if (is_wccp2) { - proto_tree_add_text(gre_tree, offset, sizeof(guint32), "WCCPv2 Data"); - offset += 4; - } - switch (type) { case GRE_PPP: - dissect_payload_ppp(pd, offset, fd, tree); + dissect_payload_ppp(pd, offset, fd, tree); break; case GRE_IP: + dissect_ip(pd, offset, fd, tree); + break; case GRE_WCCP: + if (is_wccp2) { + proto_tree_add_text(gre_tree, offset, sizeof(guint32), "WCCPv2 Data"); + offset += 4; + } dissect_ip(pd, offset, fd, tree); break; default: |