Re: DHCP timeout is too short for this college network

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 */


2. call this function somehere? /NetworkManager/src/nm-device-olpc-mesh.c: nm_device_set_dhcp_timeout (NM_DEVICE (self), 20);

To compile follow:
git clone git://
cd NetworkManager
./ --prefix=/usr --sysconfdir=/etc --localstatedir=/var
sudo make install

There are alteast 10 dev packages you will have to install, but keep running 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,

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]