Project

General

Profile

WireSharkPage » History » Version 2

Anonymous, 04/22/2017 04:04 PM
Add initial draft for how to mod WireShark

1 1
= Extending Wireshark =
2
The !WireShark packet sniffer normally doesn't support APCO P25. If you want to sniff P25 traffic using !WireShark then you'll need to patch the sources and rebuild it.
3
4
== Patching !WireShark ==
5
Check out wireshark:
6
{{{
7
% svn checkout http://anonsvn.wireshark.org/wireshark/trunk/ wireshark
8
}}}
9
10
Within the wireshark tree, check out p25 plugin from op25:
11
12
{{{
13
% cd wireshark/plugins
14
% svn checkout http://www.sedition.org.au/svn/op25/trunk/wireshark/plugins/p25 p25
15
}}}
16
17
A few small changes need to be made to the wireshark tree outside of the plugins directory (see wireshark/doc/README.plugins).  Here is an svn diff:
18
19
{{{
20
Index: configure.in
21
===================================================================
22
--- configure.in	(revision 25150)
23
+++ configure.in	(working copy)
24
@@ -1701,6 +1701,7 @@
25
   plugins/mate/Makefile
26
   plugins/opcua/Makefile
27
   plugins/opsi/Makefile
28
+  plugins/p25/Makefile
29
   plugins/pcli/Makefile
30
   plugins/profinet/Makefile
31
   plugins/rlm/Makefile
32
Index: Makefile.am
33
===================================================================
34
--- Makefile.am	(revision 25150)
35
+++ Makefile.am	(working copy)
36
@@ -253,6 +253,7 @@
37
 	-dlopen plugins/mate/mate.la \
38
 	-dlopen plugins/opcua/opcua.la \
39
 	-dlopen plugins/opsi/opsi.la \
40
+	-dlopen plugins/p25/p25cai.la \
41
 	-dlopen plugins/pcli/pcli.la \
42
 	-dlopen plugins/profinet/profinet.la \
43
 	-dlopen plugins/rlm/rlm.la \
44
Index: Makefile.nmake
45
===================================================================
46
--- Makefile.nmake	(revision 25150)
47
+++ Makefile.nmake	(working copy)
48
@@ -916,6 +916,7 @@
49
 	xcopy ".\plugins\mate\mate.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
50
 	xcopy ".\plugins\opcua\opcua.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
51
 	xcopy ".\plugins\opsi\opsi.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
52
+	xcopy ".\plugins\p25\p25cai.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
53
 	xcopy ".\plugins\pcli\pcli.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
54
 	xcopy ".\plugins\profinet\profinet.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
55
 	xcopy ".\plugins\rlm\rlm.dll" $(INSTALL_DIR)\plugins\$(VERSION) /d
56
Index: plugins/Makefile.nmake
57
===================================================================
58
--- plugins/Makefile.nmake	(revision 25150)
59
+++ plugins/Makefile.nmake	(working copy)
60
@@ -77,6 +77,9 @@
61
 	cd opsi
62
 	$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
63
 	cd ..
64
+	cd p25
65
+	$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
66
+	cd ..
67
 	cd pcli
68
 	$(MAKE) /$(MAKEFLAGS) -f Makefile.nmake $(PLUGIN_TARGET)
69
 	cd ..
70
@@ -137,6 +140,7 @@
71
 	xcopy mate\*.dll $(VERSION) /d
72
 	xcopy opcua\*.dll $(VERSION) /d
73
 	xcopy opsi\*.dll $(VERSION) /d
74
+	xcopy p25\*.dll $(VERSION) /d
75
 	xcopy pcli\*.dll $(VERSION) /d
76
 	xcopy profinet\*.dll $(VERSION) /d
77
 	xcopy rlm\*.dll $(VERSION) /d
78
Index: plugins/Makefile.am
79
===================================================================
80
--- plugins/Makefile.am	(revision 25150)
81
+++ plugins/Makefile.am	(working copy)
82
@@ -38,6 +38,7 @@
83
 	mate \
84
 	opcua \
85
 	opsi \
86
+	p25 \
87
 	pcli \
88
 	profinet \
89
 	rlm \
90
Index: packaging/nsis/Makefile.nmake
91
===================================================================
92
--- packaging/nsis/Makefile.nmake	(revision 25150)
93
+++ packaging/nsis/Makefile.nmake	(working copy)
94
@@ -62,6 +62,7 @@
95
 	../../plugins/m2m/m2m.dll \
96
 	../../plugins/mate/mate.dll \
97
 	../../plugins/opsi/opsi.dll \
98
+	../../plugins/p25/p25cai.dll \
99
 	../../plugins/pcli/pcli.dll \
100
 	../../plugins/rlm/rlm.dll \
101
 	../../plugins/rtnet/rtnet.dll \
102
Index: packaging/nsis/wireshark.nsi
103
===================================================================
104
--- packaging/nsis/wireshark.nsi	(revision 25150)
105
+++ packaging/nsis/wireshark.nsi	(working copy)
106
@@ -757,6 +757,7 @@
107
 File "..\..\plugins\lwres\lwres.dll"
108
 File "..\..\plugins\m2m\m2m.dll"
109
 File "..\..\plugins\opsi\opsi.dll"
110
+File "..\..\plugins\p25\p25cai.dll"
111
 File "..\..\plugins\pcli\pcli.dll"
112
 File "..\..\plugins\profinet\profinet.dll"
113
 File "..\..\plugins\rlm\rlm.dll"
114
}}}
Add picture from clipboard (Maximum size: 48.8 MB)