components/libpcap/patches/pcap-bpf.c.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 30 Sep 2016 21:33:56 -0700
changeset 7017 25872950aa80
parent 5844 ba7883e92c55
permissions -rw-r--r--
24476452 The Horizon plugin ironic-ui should be added to Userland (fix pkgmerge)

Adding the "any" pseudo-device since Solaris supports it.
This is an in-house patch and will eventually be sent upstream.

*** libpcap-1.7.4/pcap-bpf.c	Mon Mar  9 12:22:07 2015
--- new/pcap-bpf.c	Mon Apr 11 16:50:19 2016
***************
*** 2309,2314 ****
--- 2309,2325 ----
  int
  pcap_platform_finddevs(pcap_if_t **alldevsp, char *errbuf)
  {
+ 
+ #ifdef DLT_IPNET 
+ 	/*
+ 	 * Adding the "any" pseudo-device
+ 	 */
+ 	const char any_descr[] = "Pseudo-device that captures on all interfaces";
+ 	if (pcap_add_if(alldevsp, "any", IFF_UP|IFF_RUNNING,
+ 	    any_descr, errbuf) < 0)
+ 		return (-1);
+ #endif
+ 
  	return (0);
  }