dhcp sends hostname when 'Use DHCP Hostname' option unchecked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd |
Fix Committed
|
Medium
|
David Paleino |
Bug Description
By default, preferences of every detected network in wicd have the option 'Use DHCP hostname' unchecked. When wicd runs dhcpcd, however, it seems to ignore this option since it does send the hostname to the dhcp server every time regardless of the value of the option.
Wicd version: 1.7.2.4
Distro: Arch Linux, reproduced on Debian squeeze
Log:
2013/01/12 15:48:54 :: Running DHCP with hostname turing
2013/01/12 15:48:54 :: /usr/sbin/dhcpcd -h turing --noipv4ll wlan0
2013/01/12 15:48:54 :: dhcpcd[14411]: version 5.6.2 starting
2013/01/12 15:48:54 ::
2013/01/12 15:48:54 :: dhcpcd[14411]: wlan0: sending IPv6 Router Solicitation
2013/01/12 15:48:54 ::
2013/01/12 15:48:54 :: dhcpcd[14411]: wlan0: sendmsg: Cannot assign requested address
2013/01/12 15:48:54 ::
2013/01/12 15:48:54 :: dhcpcd[14411]: wlan0: broadcasting for a lease
2013/01/12 15:48:54 ::
2013/01/12 15:48:55 :: dhcpcd[14411]: wlan0: offered 192.168.1.7 from 192.168.1.1
2013/01/12 15:48:55 ::
2013/01/12 15:48:55 :: dhcpcd[14411]: wlan0: acknowledged 192.168.1.7 from 192.168.1.1
2013/01/12 15:48:55 ::
2013/01/12 15:48:55 :: dhcpcd[14411]: wlan0: checking for 192.168.1.7
2013/01/12 15:48:55 ::
2013/01/12 15:48:55 :: iwconfig wlan0
2013/01/12 15:48:57 :: iwconfig wlan0
2013/01/12 15:48:58 :: dhcpcd[14411]: wlan0: sending IPv6 Router Solicitation
2013/01/12 15:48:58 ::
2013/01/12 15:49:00 :: iwconfig wlan0
2013/01/12 15:49:00 :: dhcpcd[14411]: wlan0: leased 192.168.1.7 for 86400 seconds
2013/01/12 15:49:00 ::
2013/01/12 15:49:00 :: dhcpcd[14411]: forked to background, child pid 14452
2013/01/12 15:49:00 ::
2013/01/12 15:49:00 ::
2013/01/12 15:49:00 :: DHCP connection successful
Related branches
Changed in wicd: | |
status: | New → Fix Committed |
Hello Martin,
here I am, after having looked at the code.
Really the message given in the log is misleading. What WICD does is:
- is the option checked? Send to the DHCP server the hostname specified in the textbox
- is the option unchecked? Send to the DHCP server the hostname of the system (/etc/hostname or `uname -n`)
I guess the latter is harmless. Maybe I should clarify the log message?
Kindly,
David