/* -*-c-*-
*
- * $Id$
- *
* TrIPE protocol dissector for Wireshark
*
* (c) 2003 Straylight/Edgeware
*/
-/*----- Licensing notice --------------------------------------------------*
+/*----- Licensing notice --------------------------------------------------*
*
* This file is part of Trivial IP Encryption (TrIPE).
*
* 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.
#include <wireshark/epan/packet.h>
#include <wireshark/epan/prefs.h>
-#include "tripe-protocol.h"
+#include "protocol.h"
/*----- Static variables --------------------------------------------------*/
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)
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);
}
proto_tree_add_item(ti, hf_tripe_ct_ct, b, off, -1, FALSE);
goto done;
done:;
- }
+ }
}
void proto_register_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)