Pokology - a community-driven site around GNU poke

_____ ---' __\_______ ______)

libpoke Examples

__) __) ---._______) Table of Contents _________________ 1. Integration with libpcap (Packet Capture Library): This page contains a categorized collection of examples of using libpoke. If you have written an example and want it listed here, please let us know in mailto:poke-devel@gnu.org. In order to build the examples in libpoke-examples (https://git.ageinghacker.net/git/cgit.cgi/pokology/tree/libpoke-examples/). invoke make command in that directory. Example: ,---- | make `---- Or, e.g., if you've installed the poke in your $HOME/usr directory, you can run the following command: ,---- | CFLAGS=-I$HOME/usr/include LDFLAGS=-L$HOME/usr/lib make `---- 1 Integration with libpcap (Packet Capture Library): ==================================================== You can find some capture file in Wireshark upstream repo (in test/captures directory). - *Example*: pcap-ro-iospace - *Description*: Using pcap library to capture network packets and expose them in IO space. - *Source*: https://git.ageinghacker.net/git/cgit.cgi/pokology/tree/libpoke-examples/pcap-ro-iospace.c - *How to run over wlan0 network interface*: sudo POKE_LOAD_PATH=../pickles ./build/pcap-ro-iospace pokycap.pk wlan0 - *How to run over .pcap file*: sudo POKE_LOAD_PATH=../pickles ./build/pcap-ro-iospace pokycap.pk - < YOUR-FILE.pcap~