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

Re: dhclient and option 82.



Hi.

It works! Included is a patch for /usr/src/usr.sbin/dhcp/dhclient/dhclient.c.

Thanks for the tip!

On Sat, Oct 14, 2000 at 10:22:42AM -0400, Hugo Villeneuve wrote:
> I think the 2.7-release version wasn't checking unknown options, now it
> does and will chock on unknown option with this message.
> 
> If you just want dhclient to ignore this option (it doesn't seem to be
> a config option), you can just edit the source code and recompile.
> 
> In /usr/src/usr.sbin/dhcp/dhclient/dhclient.c, in function "check_option",
> add "case 82:" in the "/* Do nothing */" part of the switch statement.
> 
> Recompile, if it works tell people, somebody will properly fix it.

-- 
Martin Ledoux
Étudiant, B.Sc. mathématiques-informatique, Université de Montréal
Email: ledoum_(_at_)_iro_(_dot_)_umontreal_(_dot_)_ca | W3: http://www.iro.umontreal.ca/~ledoum
--- dhclient.c	Sat Oct 14 10:50:35 2000
+++ dhclient.c	Sat Oct 14 10:51:13 2000
@@ -2179,6 +2179,7 @@
   case DHO_DHCP_CLIENT_IDENTIFIER :
   case DHO_DHCP_USER_CLASS_ID :
   case DHO_END :
+  case 82:
 	/* do nothing */
 	return(1);
   default:

Visit your host, monkey.org