Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Do not clear libnet arp request packet, we send the same packet on each iteration of the loop, so no need for a separate function to send an arp request - Fix ether type of ipv6 packets, needs testing - Refactor for better log messages, remove redundant vars, free vars, and use static vars and functions amap - Fix var free and destroy on exit - Refactor for var init and names - Use correct print functions - Increase mirror target loop count and pcap_handler packet processing count for busy networks - Use libpcap to recv arp replies instead of socket(2), because socket(2) cannot recv any arp packets on OpenBSD, and fails sometimes on Linux too - Get mirror target ethernet address and check if reply is from target, so we know target is up - Exit failing if mirror target is down - Refactor arp code, init libnet (and pcap) only once - Remove new lines in libnet error messages, libnet already appends new lines - Move all pcap and mirror logging code into logpkt.c/h, use logpkt_ prefix now - Fix values of nh and hl params of libnet_build_ipv6(), needs testing - Add libnet ipv6 support to pcap logging, not tested with ipv6 yet, but does not break ipv4 support, needs review and testing - Keep the privsep socket open for pcap logging, now due to support for separate files per connection - Refactor for the new options - Add -Y and -y options for pcap logging to separate files, similar to -S and -F options, update conffile and its man page accordingly - Fix documentation - Remove redundant content log flags - Handle error conditions while creating new lbs - Prevent possible memory leak: create min number of lbs based on enabled content loggers - Create opts_set_* functions and conffile options for pcap and mirror logging - Separate content loggers, so they don't exclude each other now - Prevent running as root by moving libnet_init() to somewhere before privsep fork - Fix compiler warnings for type mismatches, etc. - Fix memory leak introduced in logbuf_write_free() by freeing buf - Apply coding style and clean up - Fix excessive fragmentation in HTTP packets in pcap logs by calling write callback only once with a new buffer combining all accumulated log buffers in the linked list Have to remove NONNULL(1) from logbuf_write_free declaration now, because we check lb for NULL in while condition - Replace recursion in logbuf_write_free() with while loop - Add libnet autodetection, temporary fix, needs review - Add OPENBSD directive to fix OpenBSD specific differences, temporary fix, needs review - Fix memory leaks - Fix build warnings - Add license headers - Improve log messages - Fix coding style - Clean-up - Merge remote-tracking branch 'cihankom/master' # Conflicts: # main.c # opts.h
- Loading branch information