![]() ![]() ![]() ![]() New fields,Three fields have been added to the native wireshark parsing result: # If there is no flex、bison library, please install first Mv /opt/libpcap-$PCAPV/libpcap.so.1 /opt/gowireshark/libs/libpcap.so.1 # After successful compilation, rename the dll file configure -host=aarch64-linux -with-pcap=linux # Determine the latest release version and set environment variables # Before copying the source code to the project, you can back up the original /opt/gowireshark/include/wireshark/ directoryĬp -r /opt/wireshark/ /opt/gowireshark/include/wireshark/ # Overwrite the wireshark source folder(Remove the useless build/ directory first) # Overwrites replaces the original 9 wireshark dynamic link library files cd /opt/gowireshark/libs/Ĭp -r /opt/wireshark/build/run/lib *so *. # After successful compilation, enter the run directory to view the compiled dynamic link library cd run/ & ls -lh # Create a build-specific directory under the /opt/wireshark/ directoryĬmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_wireshark=off -DENABLE_LUA=off. # Dependent on the problem resolution complete, delete the files generated by the test # Dependencies that may need to be installed # If you do not have cmake, please install it first # Resolve dependency issues according to the output red error log until they are ignored when a qt5 error occurs How to check the dependencies required for compilation. # Operate in the /opt/wireshark directory cd /opt/wireshark/ # Determine the latest release version and set environment variables export WIRESHARKV=4.0.10 gowireshark.go All external interfaces are encapsulated by Go.include/lib.h、offline.h、online.h The declaration of the wireshark interface is encapsulated in C and finally called by the Go encapsulation.The final interface is encapsulated with Go, and the user's Go program can be used directly The wireshark source files, copied out, must be placed hereĬode that encapsulates and enhances libpcap and wireshark functionality in C ![]() Detailed description of the project directory structure: file ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |