the-tcpdump-group/libpcap — pull request #381 by jhanders (2014-09-04 15:15:02+00:00)
Title: Update pcap-bpf.c

Update zoneid handling when using bpf on Solaris.

Tighten up use of lifr_zoneid to make more sense on global and non-global zones. This will enable
bpf consumers in NGZs to work transparently on links in their own name space. As the current code
only sets lifr_zoneid in the event of a zonename/linkname specification on the command line, you
need to specify the zonename in an NGZ in order for tcpdump/tshark to work reliably. This is counter
intuitive. lifr_zoneid should always be set and can only deviate from the current process zone if
we are in the global zone and if a valid zonename/linkname is supplied.