diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-29 05:47:07 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-07-29 05:47:07 +0000 |
commit | 7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3 (patch) | |
tree | 3e8a46fe6f7bb69698edb1187655e445bbfda37c /packet-rsvp.c | |
parent | 6f1d3a3be830da628246f7cea77fe9c491470d17 (diff) | |
download | wireshark-7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3.tar.gz wireshark-7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3.tar.bz2 wireshark-7bd6c15378e920f89c76cd3beeb7e8bcf6a164e3.zip |
Made the protocol (but not the fields) use the new proto_tree routine,
allowing users to filter on the existence of these protocols. I also
added packet-clip.c to the Nmake makefile.
svn path=/trunk/; revision=402
Diffstat (limited to 'packet-rsvp.c')
-rw-r--r-- | packet-rsvp.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/packet-rsvp.c b/packet-rsvp.c index 9a6af6f33c..eebedd0cf4 100644 --- a/packet-rsvp.c +++ b/packet-rsvp.c @@ -3,7 +3,7 @@ * * (c) Copyright Ashok Narayanan <ashokn@cisco.com> * - * $Id: packet-rsvp.c,v 1.3 1999/07/13 02:52:55 gram Exp $ + * $Id: packet-rsvp.c,v 1.4 1999/07/29 05:47:02 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -72,6 +72,8 @@ #include "packet-ipv6.h" #include "packet-rsvp.h" +static int proto_rsvp = -1; + /* Stuff for IEEE float handling */ #define IEEE_NUMBER_WIDTH 32 /* bits in number */ @@ -164,8 +166,7 @@ dissect_rsvp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) if (tree) { msg_length = pntohs(pd+offset+6); - ti = proto_tree_add_text(tree, offset, msg_length, - "Resource ReserVation Protocol (RSVP)"); + ti = proto_tree_add_item(tree, proto_rsvp, offset, msg_length, NULL); rsvp_tree = proto_item_add_subtree(ti, ETT_RSVP); ti = proto_tree_add_text(rsvp_tree, offset, @@ -844,3 +845,15 @@ dissect_rsvp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) } } } + +void +proto_register_rsvp(void) +{ +/* static hf_register_info hf[] = { + { &variable, + { "Name", "rsvp.abbreviation", TYPE, VALS_POINTER }}, + };*/ + + proto_rsvp = proto_register_protocol("Resource ReserVation Protocol (RSVP)", "rsvp"); + /* proto_register_field_array(proto_rsvp, hf, array_length(hf));*/ +} |