Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 266467 Details for
Bug 359353
=net-analyzer/tcpreplay-3.4.4-r1 fails tests with "non-standard" NIC names
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Let user define which nic to use
tcpreplay-3.4.4-r1.ebuild.diff (text/plain), 1.19 KB, created by
Dustin Polke
on 2011-03-19 11:17:19 UTC
(
hide
)
Description:
Let user define which nic to use
Filename:
MIME Type:
Creator:
Dustin Polke
Created:
2011-03-19 11:17:19 UTC
Size:
1.19 KB
patch
obsolete
>--- tcpreplay-3.4.4-r1.ebuild.orig >+++ tcpreplay-3.4.4-r1.ebuild >@@ -24,17 +24,20 @@ DEPEND=" > > RDEPEND="${DEPEND}" > >+: ${TCPREPLAY_NIC:="eth0"} >+: ${TCPREPLAY_NIC2:="$TCPREPLAY_NIC}"} >+ > src_prepare() { > echo "We don't use bundled libopts" > libopts/options.h >- epatch ${FILESDIR}/${P}-crash.patch >+ epatch "${FILESDIR}"/${P}-crash.patch > } > > src_configure() { > # By default it uses static linking. Avoid that, bug 252940 > econf --enable-shared \ > --disable-local-libopts \ >- --with-testnic=eth1 \ >- --with-testnic2=wlan0 \ >+ --with-testnic="${TCPREPLAY_NIC}" \ >+ --with-testnic2="${TCPREPLAY_NIC2}" \ > $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \ > $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \ > $(use_enable debug) >@@ -48,7 +51,9 @@ src_test() { > make -C test tcpprep || die "self test failed - see ${S}/test/test.log" > else > make test || { >- ewarn "Note, that some tests require eth0 iface to be UP." ; >+ ewarn "Note, that some tests require an iface to be UP. The" ; >+ ewarn "default setting is eth0. A different iface can be used by" ; >+ ewarn "setting 'TCPREPLAY_NIC' and 'TCPREPLAY_NIC2 variables." ; > die "self test failed - see ${S}/test/test.log" ; } > fi > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 359353
:
266357
|
266467