Fix a typo (minimum vs maximum)
Do optimization of pcap filters via set_pcap_filter

Optimizing reduces BPF instructions from 45 to 10 for large-scan case.

Also use PCAP_NETMASK_UNKNOWN instead of 0 since we don't provide a
netmask.