Packet capture library.
- Run
make install
#include <wrc/wrc.h>
int main(void) {
wrc cap;
wc_iflist ifc = wrc_get_interfaces();
wrc_default(&cap);
int opts = wrc_setopts(&cap, ifc.ifc[1], PA_NULL, 0);
if (opts != 0) {
printf("setopts error\n");
exit(0);
}
wrc_cap(&cap, WCFILE, NULL, DEFAULT_CAP);
wrc_destroy(&cap);
return 0;
}
$ make lib
- Fork it (https://github.com/wirecroc/libwrc/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Nikolaycc - creator and maintainer
- PabloEscobar1337 - creator and maintainer