Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 20444 Details for
Bug 25597
2.4.20-gentoo-r5 never sees SYN/ACK for SYN it sent
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Even MORE simple link detection.
net.eth0.diff (text/plain), 1.63 KB, created by
Jordan Ritter
on 2003-11-08 11:10:11 UTC
(
hide
)
Description:
Even MORE simple link detection.
Filename:
MIME Type:
Creator:
Jordan Ritter
Created:
2003-11-08 11:10:11 UTC
Size:
1.63 KB
patch
obsolete
>--- net.eth0.orig 2003-11-08 11:04:50.000000000 -0800 >+++ net.eth0 2003-11-08 10:55:17.000000000 -0800 >@@ -33,6 +33,7 @@ > inet6_IFACE="$(eval echo \$\{inet6_${iface}\})" > alias_IFACE="$(eval echo \$\{alias_${iface}\})" > status_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/Link/ { if ($1 == IFACE) print "up" }')" >+ carrier_IFACE="$(ifconfig | gawk -v IFACE="${iface}" '/RUNNING/ { if ($1 == IFACE) print "running" }')" > vlans="$(eval echo \$\{iface_${IFACE}_vlans\})" > } > >@@ -63,11 +64,18 @@ > # Check that eth0 was not brough up by the kernel ... > if [ "${status_IFACE}" != "up" ] > then >- /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || { >- retval=$? >- eend ${retval} "Failed to bring ${IFACE} up" >- return ${retval} >- } >+ # Check that the interface has a carrier >+ if [ "${carrier_IFACE}" == "running" ] >+ then >+ /sbin/dhcpcd ${dhcpcd_IFACE} ${IFACE} >/dev/null || { >+ retval=$? >+ eend ${retval} "Failed to bring ${IFACE} up" >+ return ${retval} >+ } >+ else >+ eend 1 "${IFACE} is not plugged in or has no carrier signal" >+ return 1 >+ fi > fi > 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 Raw
Actions:
View
Attachments on
bug 25597
:
17480
|
17481
|
20444