X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/28461f0eaead039da9acbc637392197aabf94815..37bc5549789d193d7dbae9846a309a7398152549:/wireshark/packet-tripe.c diff --git a/wireshark/packet-tripe.c b/wireshark/packet-tripe.c index ea42d676..d9e3ef14 100644 --- a/wireshark/packet-tripe.c +++ b/wireshark/packet-tripe.c @@ -1,13 +1,11 @@ /* -*-c-*- - * - * $Id$ * * TrIPE protocol dissector for Wireshark * * (c) 2003 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Trivial IP Encryption (TrIPE). * @@ -15,12 +13,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * TrIPE is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with TrIPE; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -42,7 +40,7 @@ #include #include -#include "tripe-protocol.h" +#include "protocol.h" /*----- Static variables --------------------------------------------------*/ @@ -85,7 +83,7 @@ static void prefcb(void) { } static gint gethash(proto_tree *tt, int hf, tvbuff_t *b, gint off) { proto_tree_add_item(tt, hf, b, off, hashsz, FALSE); - return (off + hashsz); + return (off + hashsz); } static gint getmp(proto_tree *tt, const hfmp *hf, tvbuff_t *b, gint off) @@ -119,7 +117,7 @@ static gint getge(proto_tree *tt, const hfge *hf, tvbuff_t *b, gint off) proto_tree_add_item(tt, hf->hfy_len, b, off + 2 + len, 2, FALSE); proto_tree_add_item(tt, hf->hfy_val, b, off + 4 + len, len2, FALSE); r = off + len + len2 + 4; - } + } return (r); } @@ -306,7 +304,7 @@ static void dissect_tripe(tvbuff_t *b, packet_info *p, proto_tree *t) proto_tree_add_item(ti, hf_tripe_ct_ct, b, off, -1, FALSE); goto done; done:; - } + } } void proto_register_tripe(void) @@ -468,7 +466,7 @@ void proto_reg_handoff_tripe(void) dissector_handle_t dh; dh = create_dissector_handle(dissect_tripe, proto_tripe); - dissector_add("udp.port", 22003, dh); + dissector_add("udp.port", TRIPE_PORT, dh); } G_MODULE_EXPORT void plugin_reg_handoff(void)