Here is patch to add support of option 121 to dhclient-udhcpc-wrapper. There is also need of patch to udhcpc script (bug #127149) and setting up /etc/dhclient.conf whith "request" option containg "unknown-121".
Created attachment 82845 [details, diff] baselayout-rfc3442-dhclient.patch Here is a patch made to baselayout-1.11.14-r6.
This is not going to happen for baselayout-1.11, which is where your script is based. Infact, for the next baselayout-1.12.0_pre17 release we're moving all the code to the dhcp clients and out of baselayout helpers.d directory. So everything is going to have to happen in /sbin/dhclient-script - and I'll only even consider patches for it against dhcp-3.0.3-r6 at a minimum in the least intrusive manner possible. As such you may want to hold on on writing the patch for dhclient-script until we get pre17 out. I'll post back here when pre17 is done as a reminder :)
(In reply to comment #2) I am little confused. You saying that dhclient-script code will be in dhcp package. Then how it is bound with baselayout version? And most interesting - will it respect if user wants to use iproute or ifconfig? Also, as I see in baselayout-1.12.0_pre16-r3 - there is no usage of /sbin/dhclient-script and there is now a more common script for all dhcp clients.
(In reply to comment #3) > (In reply to comment #2) > > I am little confused. You saying that dhclient-script code will be in dhcp > package. Then how it is bound with baselayout version? Well, the idea is that it won't be. It will be fully self sufficient with a minimum of fuss in baselayout. > And most interesting - > will it respect if user wants to use iproute or ifconfig? > Also, as I see in baselayout-1.12.0_pre16-r3 - there is no usage of > /sbin/dhclient-script and there is now a more common script for all dhcp > clients. By default no, it will use ifconfig.
And what about my comment on current dhcp code in baselayout-1.12.0_pre16-r3?
(In reply to comment #5) > And what about my comment on current dhcp code in baselayout-1.12.0_pre16-r3? pre16 and earlier still use helpers.d stuff - pre17 will not force dhcp clients to use any baselayout scripts.
(In reply to comment #6) > pre16 and earlier still use helpers.d stuff - pre17 will not force dhcp clients > to use any baselayout scripts. > May I ask why? Is there some sort of discussion "visible" throw Internet describing this. I'm interested - why this was changed.
(In reply to comment #7) > (In reply to comment #6) > > pre16 and earlier still use helpers.d stuff - pre17 will not force dhcp clients > > to use any baselayout scripts. > > > May I ask why? Is there some sort of discussion "visible" throw Internet > describing this. I'm interested - why this was changed. > No, there's no visible discussion. I maintain networking in Gentoo, am upstream for dhcpcd and maintainer for dhcpcd, pump and dhcp(dhclient) in Gentoo also. So pretty much what I say goes :) If I'm unsure about something I ask fellow devs, sometimes even posting to the Gentoo -dev mailing list. As to the why - well, it's simple. I'd like to trim down baselayout. My current snapshot is a lot lot smaller, which makes things faster. Removing a lot of crud into their packages makes overall networking a lot faster. Don't agree with what I do then file a bug or get me on IRC and we'll talk about it then :)
Get upstream to support this please.