Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296921 - net-misc/dhcp: ping output is not redirected to /dev/null
Summary: net-misc/dhcp: ping output is not redirected to /dev/null
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-14 19:08 UTC by Martin Mokrejš
Modified: 2012-10-10 04:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,4.37 KB, text/plain)
2009-12-14 19:27 UTC, Martin Mokrejš
Details
dhclient-script.patch (dhclient-script.patch,460 bytes, patch)
2009-12-14 19:28 UTC, Martin Mokrejš
Details | Diff
photo.jpg (PC140067.JPG,237.13 KB, image/jpeg)
2009-12-14 21:34 UTC, Martin Mokrejš
Details

Note You need to log in before you can comment on or make changes to this bug.
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