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

Bug 296921

Summary: net-misc/dhcp: ping output is not redirected to /dev/null
Product: Gentoo Linux Reporter: Martin Mokrejš <mmokrejs>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
dhclient-script.patch
photo.jpg

Description Martin Mokrejš 2009-12-14 19:08:20 UTC
When I use empty /etc/conf.d/net file dhcp kicks in. The dhclient tries to obtain DHCP lease but if at the beginning the network cable was unplugged and re-plugged _during_ dhclient re-trying to ask for a lease somehow it does not managed to extract the respnse, or whatever happens. Then, /sbin/dhclient-script is used. Please not there is only /etc/dhcp/dhclient.conf.example on my system so some defaults, probably from the ugly shellscript kick in. Kernel log shows dhclient re-tried an old lease after a while and pings the router. The ping command however spits its output into the rc console.
Comment 1 Martin Mokrejš 2009-12-14 19:13:57 UTC
Similarly, if you leave the network cable unplugged the ping output documenting 100% loss is shown. Am on x86 stable.
Comment 2 Martin Mokrejš 2009-12-14 19:22:58 UTC
Maybe it is because "ping -q" is not completely quiet ...
Comment 3 Martin Mokrejš 2009-12-14 19:27:48 UTC
Created attachment 213022 [details]
emerge --info
Comment 4 Martin Mokrejš 2009-12-14 19:28:07 UTC
Created attachment 213023 [details, diff]
dhclient-script.patch
Comment 5 Martin Mokrejš 2009-12-14 21:34:48 UTC
Created attachment 213034 [details]
photo.jpg
Comment 6 Martin Mokrejš 2009-12-14 21:36:03 UTC
(In reply to comment #5)
> Created an attachment (id=213034) [details]
> photo.jpg
> 

192.168.0.1 is my router, btw.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-10-15 07:48:33 UTC
Please update to apply against 3.1.3_p1 and 4.1.x.
Or note if it's not required anymore.
Comment 8 SpanKY gentoo-dev 2012-10-10 04:16:46 UTC
should be all set now in the tree; thanks for the report!

Commit message: Quiet ping output by default
http://sources.gentoo.org/net-misc/dhcp/dhcp-4.2.4_p2-r1.ebuild?rev=1.1
http://sources.gentoo.org/net-misc/dhcp/files/dhcp-4.2.4-quieter-ping.patch?rev=1.1