Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 188453 - two regressions in dhcpd-3.1*
Summary: two regressions in dhcpd-3.1*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 188284
  Show dependency tree
 
Reported: 2007-08-11 11:09 UTC by Markus Meier
Modified: 2007-08-21 10:53 UTC (History)
0 users

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


Attachments
dhcpcd-3.1.4-dump.tar.bz2 (dhcpcd-3.1.4.dump.tar.bz2,8.72 KB, application/octect-stream)
2007-08-11 12:17 UTC, Markus Meier
Details
Fix -L (dhcpcd-ipv4ll.patch,920 bytes, patch)
2007-08-11 14:54 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2007-08-11 11:09:59 UTC
the first one:
on my wireless network (zyxel router, ipw2100 network adapter), net-misc/dhcpcd-3.1.4 can't get an IP adress. output from `dhcpcd -d eth1`:
Info, eth1: dhcpcd 3.1.4 starting
Info, eth1: hardware address = 00:04:23:68:ca:87
Info, eth1: DUID = 00:01:00:01:0e:3e:d8:2a:00:02:3f:64:ba:e2
Info, eth1: broadcasting for a lease
Debug, eth1: sending DHCP_DISCOVER with xid 0x6d5cfa2e
Debug, eth1: waiting on select for 20 seconds
Debug, eth1: got a packet with xid 0x6d5cfa2e
Info, eth1: offered 192.168.0.37 from 192.168.0.1
Debug, eth1: sending DHCP_REQUEST with xid 0x6d5cfa2e
Debug, eth1: waiting on select for 20 seconds
Debug, eth1: got a packet with xid 0x6d5cfa2e
Info, eth1: received NAK: (null)
Info, eth1: broadcasting for a lease
...

the same with net-misc/dhcpcd-3.0.16-r1 (working w/o problems):
Info, eth1: dhcpcd 3.0.16 starting
Info, eth1: hardware address = 00:04:23:68:ca:87
Info, eth1: broadcasting for a lease
Debug, eth1: sending DHCP_DISCOVER with xid 1682288937
Debug, eth1: waiting on select for 20 seconds
Debug, eth1: got a packet with xid 1682288937
Info, eth1: offered 192.168.0.34 from 192.168.0.1
Debug, eth1: sending DHCP_REQUEST with xid 1682288937
Debug, eth1: waiting on select for 20 seconds
Debug, eth1: got a packet with xid 1682288937
Info, eth1: leased 192.168.0.34 for 259200 seconds
Debug, eth1: renew in 129600 seconds
Debug, eth1: rebind in 226800 seconds
Info, eth1: adding IP address 192.168.0.34/24
Info, eth1: adding default route via 192.168.0.1 metric 0
Debug, eth1: writing /etc/resolv.conf
Debug, eth1: writing /var/lib/dhcpcd/dhcpcd-eth1.info
Debug, eth1: forking to background


The second 'regression' is the following:
my /etc/conf.d/net for eth0:
 config_eth0="dhcp"
 #fallback_eth0="'192.168.2.10 netmask 255.255.255.0'"
 fallback_eth0="192.168.2.10 netmask 255.255.255.0"
 dhcpcd_eth0="-t 5"


with dhcpcd-3.0.16-r1 works:
# /etc/init.d/net.eth0 start
 * Bringing up interface eth0
 *   dhcp ...
 *     Running dhcpcd ...
Error, eth0: timed out                       [ !! ]
 *     Trying fallback configuration
 *   192.168.2.10 netmask 255.255.255.0 ...  [ ok ]

with net-misc/dhcpcd-3.1.4, doesn't work correctly (note that no network cable is attached):
# /etc/init.d/net.eth0 start
 * Bringing up interface eth0
 *   dhcp ...
 *     Running dhcpcd ...
Error, eth0: timed out                        [ ok ]
 *     received address 169.254.70.149/16     [ ok ]


btw: using sys-apps/baselayout-2.0.0_rc2-r1

Portage 2.1.3.3 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.6-r0, 2.6.23-rc2 i686)
=================================================================
System uname: 2.6.23-rc2 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System release 2.0.0_rc2
Timestamp of tree: Fri, 10 Aug 2007 17:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/"
LANG="en_GB.utf8"
LC_ALL="en_GB.utf8"
LINGUAS="en de en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://192.168.2.1/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 avahi berkdb bidi bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl dbus divx divx4linux dri dts dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gnutls gpm graphviz gs gstreamer gtk hal iconv ieee1394 ipod ipv6 isdnlog java jpeg kde kdeenablefinal kerberos lcms live mad midi mikmod mmx mono mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ntfs ogg oggvorbis opengl openmp oss pam pcre pdf perl png pppd python qt qt3 qt3support qt4 quicktime readline real reflection ruby samba screen sdl session spell spl sse sse2 ssl stream svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wxwindows x86 xcomposite xine xinerama xml2 xorg xprint xv xvid zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev synaptics mouse keyboard" KERNEL="linux" LINGUAS="en de en_GB" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-08-11 11:33:29 UTC
The 2nd one is IPV4LL, or APIPA. See RFC 3927 for details. You can turn this off using the -L option.
http://www.rfc-archive.org/getrfc.php?rfc=3927

The 1st one is probably a bug. Could you attach wireshark traces of the dhcp transaction please?
Comment 2 Markus Meier gentoo-dev 2007-08-11 12:14:25 UTC
(In reply to comment #1)
> The 2nd one is IPV4LL, or APIPA. See RFC 3927 for details. You can turn this
> off using the -L option.
> http://www.rfc-archive.org/getrfc.php?rfc=3927

I tried with -L:
# dhcpcd -d -L -t 5 eth0
Info, eth0: dhcpcd 3.1.4 starting
Info, eth0: hardware address = 00:02:3f:64:ba:e2
Info, eth0: DUID = 00:01:00:01:0e:3e:d8:2a:00:02:3f:64:ba:e2
Info, eth0: broadcasting for a lease
Debug, eth0: sending DHCP_DISCOVER with xid 0x1b26b63e
Debug, eth0: waiting on select for 5 seconds
Debug, eth0: sending DHCP_DISCOVER with xid 0x1b26b63e
Error, eth0: timed out
Info, eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Error, eth0: lease information file `/var/lib/dhcpcd/dhcpcd-eth0.info' does not exist
Info, eth0: probing for an IPV4LL address
Info, eth0: checking 169.254.60.206 is available on attached networks
Debug, eth0: sending ARP probe #1
Debug, eth0: sending ARP probe #2
Debug, eth0: sending ARP probe #3
Debug, eth0: sending ARP claim #1
Debug, eth0: sending ARP claim #2
Info, eth0: adding IP address 169.254.60.206/16
Debug, eth0: no dns information to write
Debug, eth0: writing /var/lib/dhcpcd/dhcpcd-eth0.info
Debug, eth0: forking to background
Comment 3 Markus Meier gentoo-dev 2007-08-11 12:17:25 UTC
Created attachment 127743 [details]
dhcpcd-3.1.4-dump.tar.bz2

> The 1st one is probably a bug. Could you attach wireshark traces of the dhcp
> transaction please?

attached
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-08-11 14:54:59 UTC
Created attachment 127756 [details, diff]
Fix -L
Comment 5 Markus Meier gentoo-dev 2007-08-11 15:22:17 UTC
(In reply to comment #4)
> Created an attachment (id=127756) [edit]
> Fix -L

looks good, thanks.

# ./dhcpcd -d -L -t 5 eth0
Info, eth0: dhcpcd 3.1.4 starting
Info, eth0: hardware address = 00:02:3f:64:ba:e2
Info, eth0: DUID = 00:01:00:01:0e:3e:d8:2a:00:02:3f:64:ba:e2
Info, eth0: deleting IP address 192.168.2.10/24
Info, eth0: broadcasting for a lease
Debug, eth0: sending DHCP_DISCOVER with xid 0x75c0f2e9
Debug, eth0: waiting on select for 5 seconds
Debug, eth0: sending DHCP_DISCOVER with xid 0x75c0f2e9
Error, eth0: timed out
Info, eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Info, eth0: exiting
Comment 6 Roy Marples (RETIRED) gentoo-dev 2007-08-11 16:05:05 UTC
Well, the trace looks fine to me.
Does this work?
dhcpcd -d -I '' eth0
Comment 7 Markus Meier gentoo-dev 2007-08-11 16:27:04 UTC
(In reply to comment #6)
> Well, the trace looks fine to me.
> Does this work?
> dhcpcd -d -I '' eth0

It works on eth0 and the wireless eth1 (which didn't work yet)!

# dhcpcd -d -I '' eth1
Info, eth1: dhcpcd 3.1.4 starting
Info, eth1: hardware address = 00:04:23:68:ca:87
Info, eth1: broadcasting for a lease
Debug, eth1: sending DHCP_DISCOVER with xid 0x265d1f0d
Debug, eth1: waiting on select for 20 seconds
Debug, eth1: got a packet with xid 0x265d1f0d
Info, eth1: offered 192.168.0.34 from 192.168.0.1
Debug, eth1: sending DHCP_REQUEST with xid 0x265d1f0d
Debug, eth1: waiting on select for 20 seconds
Debug, eth1: got a packet with xid 0x265d1f0d
Info, eth1: checking 192.168.0.34 is available on attached networks
Debug, eth1: sending ARP probe #1
Debug, eth1: sending ARP probe #2
Debug, eth1: sending ARP probe #3
Debug, eth1: sending ARP claim #1
Debug, eth1: sending ARP claim #2
Info, eth1: leased 192.168.0.34 for 259200 seconds
Debug, eth1: renew in 129600 seconds
Debug, eth1: rebind in 226800 seconds
Info, eth1: adding IP address 192.168.0.34/24
Info, eth1: adding default route via 192.168.0.1 metric 0
Debug, eth1: writing /etc/resolv.conf
Debug, eth1: writing /var/lib/dhcpcd/dhcpcd-eth1.info
Debug, eth1: forking to background
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-08-11 16:43:46 UTC
OK, your DHCP server doesn't accept valid client ID's then
http://www.rfc-archive.org/getrfc.php?rfc=4361

Try upgrading your router firmware.
Comment 9 Markus Meier gentoo-dev 2007-08-12 13:09:11 UTC
(In reply to comment #8)
> OK, your DHCP server doesn't accept valid client ID's then
> http://www.rfc-archive.org/getrfc.php?rfc=4361
> 
> Try upgrading your router firmware.

There's only a minor upgrade for the router, according to the docs, it won't change the DHCP server. Nevertheless I will upgrade it sometime...
But I am happy that it works with -I ''.

Thanks for the quick help! (IMHO this bug can be closed)
Comment 10 Roy Marples (RETIRED) gentoo-dev 2007-08-21 10:53:49 UTC
-L fixed in 3.1.5