chiark / gitweb /
Remove crufty old CVS $Id$ markers.
[tripe] / wireshark / packet-tripe.c
index 5ea7b9788f7fef579c5a840a334ed34c4e7bef01..d9e3ef148c804928d37ed7dd145c9784ff4bd057 100644 (file)
@@ -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).
  *
  * 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.
@@ -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)