* dhcp: don't bring down an interface to delete old addresses / route
/ ARP cache information, but just flush those using the ip command.
Bringing down wireless interfaces causes wpa_supplicant to fail and
never recover ("wpa_supplicant: l2_packet_receive - recvfrom:
Network is down"). This made associating with a wireless network
rather unreliable and timing-dependant. It seems to work a lot
better now.
svn path=/nixpkgs/trunk/; revision=17514
This commit is contained in:
@@ -8,6 +8,13 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0il966bcls7nfd93qfqrgvd2apkm0kv7pk35lnl1nvbm7fyrik7z";
|
||||
};
|
||||
|
||||
patches =
|
||||
[ # Don't bring down interfaces, because wpa_supplicant doesn't
|
||||
# recover when the wlan interface goes down. Instead just flush
|
||||
# all addresses, routes and neighbours of the interface.
|
||||
./flush-if.patch
|
||||
];
|
||||
|
||||
# Fixes "socket.c:591: error: invalid application of 'sizeof' to
|
||||
# incomplete type 'struct in6_pktinfo'". See
|
||||
# http://www.mail-archive.com/blfs-book@linuxfromscratch.org/msg13013.html
|
||||
@@ -24,10 +31,11 @@ stdenv.mkDerivation rec {
|
||||
"${nettools}/bin:${nettools}/sbin:${iputils}/bin:${stdenv.coreutils}/bin:${stdenv.gnused}/bin"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
preConfigure =
|
||||
''
|
||||
sed -i "includes/dhcpd.h" \
|
||||
-"es|^ *#define \+_PATH_DHCLIENT_SCRIPT.*$|#define _PATH_DHCLIENT_SCRIPT \"$out/sbin/dhclient-script\"|g"
|
||||
'';
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Dynamic Host Configuration Protocol (DHCP) tools";
|
||||
|
||||
Reference in New Issue
Block a user