diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-11 16:33:52 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-11 16:33:52 +0100 |
commit | 9b5f1d7b4399932ac83c0f1f14b192a25db8cf53 (patch) | |
tree | 41a1c6a6c06bd198769a268d0d0784120d99aa16 /wireshark/lucent-hnb.patch | |
parent | 3b0fd2b0b9e689fd96eaf9b5d58d9c655d050a89 (diff) |
wireshark: rebase the patches, rename and add a README
Add a short README mentioning the svn version they apply
to, how to rebase them in the future, and what they do.
The renaming is done to add a hint on in which order to
apply them. The abis_oml patch has been updated to some
value_string changes in epan, all patches now add the new
files to the CMakeLists.txt of epan as well.
Diffstat (limited to 'wireshark/lucent-hnb.patch')
-rw-r--r-- | wireshark/lucent-hnb.patch | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/wireshark/lucent-hnb.patch b/wireshark/lucent-hnb.patch deleted file mode 100644 index 4c85195ea..000000000 --- a/wireshark/lucent-hnb.patch +++ /dev/null @@ -1,120 +0,0 @@ -Index: wireshark/epan/dissectors/packet-lucent_hnb.c -=================================================================== ---- /dev/null -+++ wireshark/epan/dissectors/packet-lucent_hnb.c -@@ -0,0 +1,103 @@ -+/* packet-lucent_hnb.c -+ * Routines for packet dissection of Alcatel/Lucent HomeNodeB -+ * Copyright 2009 by Harald Welte <laforge@gnumonks.org> -+ * -+ * This protocol decoder is based entirely on reverse engineering, i.e. -+ * on educated guesses. -+ * -+ * $Id: packet-lucent_hnb.c 29254 2009-07-31 19:19:25Z gerald $ -+ * -+ * Wireshark - Network traffic analyzer -+ * By Gerald Combs <gerald@wireshark.org> -+ * Copyright 1998 Gerald Combs -+ * -+ * This program is free software; you can redistribute it and/or -+ * modify 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. -+ * -+ * This program 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 this program; if not, write to the Free Software -+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -+ */ -+ -+#ifdef HAVE_CONFIG_H -+# include "config.h" -+#endif -+ -+#define LHNB_SCTP_PPI_MM 1 -+#define LHNB_SCTP_PPI_GMM 6 -+ -+#define LHNB_SCTP_PORT 6005 -+ -+#include <glib.h> -+ -+#include <epan/packet.h> -+ -+/* Initialize the protocol and registered fields */ -+static int proto_lhnb = -1; -+ -+static int hf_lhnb_length = -1; -+ -+/* Initialize the subtree pointers */ -+static gint ett_lhnb = -1; -+ -+static dissector_handle_t ranap_handle; -+ -+/* Code to actually dissect the packets */ -+static void -+dissect_lhnb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) -+{ -+ -+ int offset = 0; -+ u_int16_t len; -+ tvbuff_t *next_tvb; -+ -+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "LHNB"); -+ col_clear(pinfo->cinfo, COL_INFO); -+ -+ proto_tree_add_item(tree, hf_lhnb_length, tvb, offset+2, 2, FALSE); -+ len = tvb_get_ntohs(tvb, offset+2); -+ next_tvb = tvb_new_subset(tvb, offset+2+6, len-4, -1); -+ -+ call_dissector(ranap_handle, next_tvb, pinfo, tree); -+} -+ -+void proto_register_lucent_hnb(void) -+{ -+ static hf_register_info hf[] = { -+ {&hf_lhnb_length, -+ {"Length", "lhnb.len", -+ FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL} -+ }, -+ }; -+ -+ static gint *ett[] = { -+ &ett_lhnb, -+ }; -+ -+ proto_lhnb = -+ proto_register_protocol("Alcatel/Lucent HomeNodeB", -+ "Lucent HNB", "lhnb"); -+ -+ proto_register_field_array(proto_lhnb, hf, array_length(hf)); -+ proto_register_subtree_array(ett, array_length(ett)); -+} -+ -+void proto_reg_handoff_lucent_hnb(void) -+{ -+ dissector_handle_t lhnb_handle; -+ -+ ranap_handle = find_dissector("ranap"); -+ -+ lhnb_handle = create_dissector_handle(dissect_lhnb, proto_lhnb); -+ -+ dissector_add("sctp.ppi", LHNB_SCTP_PPI_MM, lhnb_handle); -+ dissector_add("sctp.ppi", LHNB_SCTP_PPI_GMM, lhnb_handle); -+ dissector_add("sctp.port", LHNB_SCTP_PORT, lhnb_handle); -+} -Index: wireshark/epan/dissectors/Makefile.common -=================================================================== ---- wireshark.orig/epan/dissectors/Makefile.common -+++ wireshark/epan/dissectors/Makefile.common -@@ -605,6 +605,7 @@ - packet-loop.c \ - packet-lpd.c \ - packet-lsc.c \ -+ packet-lucent_hnb.c \ - packet-lwapp.c \ - packet-lwres.c \ - packet-m2pa.c \ |