Open Issues Need Help
View All on GitHubAI Summary: This issue proposes adding a `-p` option to the `pkt_monitor` tool to disable promiscuous mode. Currently, promiscuous mode is always enabled, which can be undesirable for security or when only host-specific traffic needs to be monitored. The change involves modifying argument parsing to recognize the `-p` flag and conditionally setting the promiscuous flag in `pcap_open_live`.
Cross-platform packet monitor using libpcap (Linux + macOS). Port of the original Linux-only pkt_monitor (2004).
AI Summary: This issue proposes adding a new `-n` option to the `pkt_monitor` tool to allow users to customize the interval at which statistical output is generated. The default interval is currently 1 second, but this change would enable users to specify custom intervals, including fractional seconds for high-precision monitoring. The suggested implementation involves making the timeout value a variable and passing it to the timer setup function.
Cross-platform packet monitor using libpcap (Linux + macOS). Port of the original Linux-only pkt_monitor (2004).
AI Summary: This issue proposes to display a cumulative summary of captured packets, average bandwidth, and capture duration when the program is terminated using Ctrl+C (SIGINT). The summary should include total packet counts (broken down by IPv4, IPv6, and ARP), and average packets per second and kilobits per second.
Cross-platform packet monitor using libpcap (Linux + macOS). Port of the original Linux-only pkt_monitor (2004).
AI Summary: This issue proposes adding a new `-t` option to the `pkt_monitor` tool. This option will allow users to specify a duration in seconds after which the packet capture will automatically stop and display a summary of total packets and average bandwidth. The suggested implementation involves modifying the `alarm_handler` function to track elapsed time and use `pcap_breakloop` to terminate the capture.
Cross-platform packet monitor using libpcap (Linux + macOS). Port of the original Linux-only pkt_monitor (2004).
AI Summary: This issue proposes adding a `-f` option to the `pkt_monitor` tool to allow users to specify tcpdump-compatible BPF filter strings. This enhancement will enable more granular traffic capture based on various criteria like ports, hosts, and protocols, leveraging libpcap's `pcap_compile` and `pcap_setfilter` functions for implementation.
Cross-platform packet monitor using libpcap (Linux + macOS). Port of the original Linux-only pkt_monitor (2004).