Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 471142 - net-misc/dhcp-4.2.5_p1 dhcpd binds to all interfaces regardless of DHCPD_IFACE setting
Summary: net-misc/dhcp-4.2.5_p1 dhcpd binds to all interfaces regardless of DHCPD_IFAC...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-24 09:52 UTC by Jaak Ristioja
Modified: 2014-11-08 17:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2013-05-24 09:52:50 UTC
In /etc/conf.d/dhcpd I have DHCPD_IFACE="eth1", so that /etc/init.d/dhcpd starts "/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q -pf /var/run/dhcp/dhcpd.pid -lf /var/lib/dhcpd.leases -user dhcp -group dhcp eth1"

It seems, however, that dhcpd still binds to all interfaces. With some strace debugging I found that that dhcpd never sets SO_BINDTODEVICE with setsockopt on the sockets.

This breaks libvirt networking which uses dnsmasq to provide DHCP to virtual networks.


Portage 2.1.11.62 (default/linux/amd64/13.0/desktop, gcc-4.6.4, glibc-2.15-r3, 3.9.0-gentoo-promise x86_64)
=================================================================
System uname: Linux-3.9.0-gentoo-promise-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     6044764 total,    366668 free
KiB Swap:   16777208 total,  15405380 free
Timestamp of tree: Thu, 23 May 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.4
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.6-r1, 4.4.7, 4.5.4, 4.6.4, 4.7.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE as-is freedist free-noncomm"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -ggdb"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-O2 -pipe -march=native -ggdb"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
USE="X a52 aac acl acpi alsa amd64 aspell berkdb branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups cxx dbus directfb dri dts dvd dvdr emboss encode exif faac faad fam fbcon firefox flac fluidsynth fortran gcrypt gdbm geoip gif git glitz gmp gnokii gnutls gpm gtk hdri hscolour htmlhandbook iconv icu idn imagemagick ipv6 jbig jpeg jpeg2k kde kontact kpathsea latex lcms libnotify lua lzo mad md5sum memcached midi mmx mng modplug modules mp3 mp4 mpeg mudflap multilib ncurses nptl ogg opengl openmp opus pam pango pcre pdf phonon pic plasma png policykit postscript ppds prison qt3support qt4 readline rtmp samba sdl semantic-desktop session source spell sqlite sse sse2 sse3 sse4_1 ssl ssse3 startup-notification subversion svg system-sqlite tcpd threads tiff truetype ucs2 udev udisks unicode upower usb v4l v4l2 vorbis webkit wxwidgets x264 xattr xcb xcomposite xetex xinerama xml xprint xscreensaver xv xvid zlib" ABI_X86="64" ELIBC="glibc" KERNEL="linux" LINGUAS="en et" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 SpanKY gentoo-dev 2013-09-28 11:51:42 UTC
can you see if 4.2.5_p1-r1 works for you ?
Comment 3 SpanKY gentoo-dev 2014-11-08 17:56:31 UTC
re-open if the latest version still doesn't work