filter a pcap for IP addresses
pcapuc parses an input pcap file and prints unique IP addresses and the number of packets each IP address appeared in. Optionally, pcapuc can limit its output to addresses that only appear in the source address field of the IP header, addresses that only appear in the destination address field, or sets of IP addresses that appear in the source and destination address fields.
- -i interface
Input interface to read packets from.
- -r pcap file
Dump file to read packets from.
- -w pcap file
Dump file to write filtered packets to.
- -f expression
BPF expression which selects packets to be filtered.
- -s snaplen
Capture snaplen bytes of data from each packet.
Disable promiscuous mode sniffing.
count source IP addresses only
count destination IP addresses only
count pairs of IP addresses
output only the number of unique IP addresses or IP address pairs