Re: DHCP timeout is too short for this college network
- From: John Mahoney <jmahoney waav com>
- To: Daniel Gnoutcheff <daniel gnoutcheff name>
- Cc: networkmanager-list gnome org
- Subject: Re: DHCP timeout is too short for this college network
- Date: Tue, 12 Jan 2010 01:45:13 -0500
On Tue, Jan 12, 2010 at 1:22 AM, John Mahoney
<jmahoney waav com> wrote:
On Tue, Jan 12, 2010 at 1:02 AM, John Mahoney
<jmahoney waav com> wrote:
Yeah too good to be true. I see two ways to change the timeout.
1.Change this - /NetworkManager/src/dhcp-manager/nm-dhcp-manager.c:#define NM_DHCP_TIMEOUT 45 /* DHCP timeout, in seconds */
OR
2. call this function somehere? /NetworkManager/src/nm-device-olpc-mesh.c: nm_device_set_dhcp_timeout (NM_DEVICE (self), 20);
To compile follow:
There are alteast 10 dev packages you will have to install, but keep running
autogen.sh and when it fails go hunt down the dev package. Note some are not obvious by the name.
PS grab the code from the network manager ppa if you are using ubuntu. I do not believe the the git command I specified works out of the box. Network manager is a tricky package to build because there are so many package dependencies . At least you are not cross compiling it;) Dan Williams tends to bang out answers around Friday every week so if you wait til then you may get a answer from a pro!
PSS If you do use the git on ubuntu you have to disable apparmor(Disclaimer: this may reduce security on your box.)
sudo ln -s /etc/apparmor.d/sbin.dhclient3 /etc/apparmor.d/disable/sbin.dhclient3
sudo apparmor_parser -R /etc/apparmor.d/sbin.dhclient3
Sorry if my notes are confusing,but I did this all a while ago and was trying to step though on a dev box to explain for you how I had done it...Good luck.
I forgot to mention the obvious earlier. Youneed to install git and auto-tools before the first two commands I mentioned will work.
best of luck,
john
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]