Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 323425

Summary: net-libs/libpcap-1.1.1: unusable with bonding devices activated
Product: Gentoo Linux Reporter: Oliver Schmidt <oliver.schmidt>
Component: [OLD] LibraryAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sourceforge.net/tracker/index.php?func=detail&aid=2993250&group_id=53067&atid=469579
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch for correct bonding device handling
Enhanced ebuild to implement the patch

Description Oliver Schmidt 2010-06-10 14:25:08 UTC
If you have the new stable libpcap 1.1.1 and kernel support for Bonding devices, libpcap will refuse to work as described in the upstream bug report (see URL).

Since this will be included in 1.1.2 first, I changed the ebuild for v1.1.1 a little bit to include the patch. Please find attached the modified ebuild + patch.

Reproducible: Always

Steps to Reproduce:
1. Install libpcap + tcpdump or jnettop
2. Active kernel support for Bonding (CONFIG_BONDING=y or M)
3. Try to execute jnettop or tcpdump 

Actual Results:  
Program crashes with "pcap_findalldevs: SIOCGIFFLAGS: bonding_masters: No such device"
Comment 1 Oliver Schmidt 2010-06-10 14:26:01 UTC
Created attachment 234855 [details, diff]
Patch for correct bonding device handling

Copied from http://sourceforge.net/tracker/index.php?func=detail&aid=2993250&group_id=53067&atid=469579
Comment 2 Oliver Schmidt 2010-06-10 14:27:35 UTC
Created attachment 234857 [details]
Enhanced ebuild to implement the patch

Modified the v1.1.1 ebuild in main portage tree
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2010-06-11 18:25:27 UTC
Thank you for report. This patch was added in libpcap-1.1.1-r1.