This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Compile slow and LTE MAC Over UDP Issue???

0

I use wireshark ver 2.2.2 under windows 64bit when I only modify one line code, I find all source files are re-compiled again, the time is so long. How to set to only compile updated files?

another question: I want to analysis LTE MAC PDU over UDP, how to do it. I modify as follows: heur_dissector_add("udp", dissect_mac_lte_heur, "MAC-LTE over UDP", "mac_lte_udp", proto_mac_lte, HEURISTIC_DISABLE); change into: heur_dissector_add("udp", dissect_mac_lte_heur, "MAC-LTE over UDP", "mac_lte_udp", proto_mac_lte, HEURISTIC_ENABLE); HEURISTIC_DISABLE -> HEURISTIC_ENABLE

but sub-dissector of UDP still don't include "MAC-LTE over UDP" in heur_list

hope to get your help, so thanks

asked 09 May '17, 03:19

commonstar's gravatar image

commonstar
6112
accept rate: 0%


One Answer:

0

Please raise a separate item for each question as that's how this site works, see the FAQ for more info.

Answering your first question, presumably you are building using CMake from the command line and simply executing msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln, then VS will only rebuild the required parts. There is a lot of output, but if you redirect it to a file (2>&1 > file.txt) and check in file.txt you should only see the compiler (CL.exe) called for the modified files and then the linker (link.exe) as required e.g. to produce libepan, then libwireshark.dll and also every other dll or executable that depends on libepan.

On my build VM (VirtualBox, 4 cores of an i7 running Windows 10) a build where no files have changed is around 8 seconds (run in a PowerShell prompt using PS Measure-Command for timing):

E:\Wireshark\build64> Measure-Command { msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln 2>&1 > C:\temp\build.txt }

Days : 0 Hours : 0 Minutes : 0 Seconds : 7 Milliseconds : 425 Ticks : 74250526 TotalDays : 8.59381087962963E-05 TotalHours : 0.00206251461111111 TotalMinutes : 0.123750876666667 TotalSeconds : 7.4250526 TotalMilliseconds : 7425.0526

And if I change a dissector source file and rebuild:

E:\Wireshark\build64> Measure-Command { msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln 2>&1 > C:\temp\build.txt }

Days : 0 Hours : 0 Minutes : 0 Seconds : 43 Milliseconds : 649 Ticks : 436493534 TotalDays : 0.000505200849537037 TotalHours : 0.0121248203888889 TotalMinutes : 0.727489223333333 TotalSeconds : 43.6493534 TotalMilliseconds : 43649.3534

You can speed up the rebuild by developing your dissector as a plugin, in that case there is no library rebuild only the compile and link of the plugin DLL.

answered 09 May ‘17, 04:40

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%