Adding this to libdhcp-1.25 and building in rawhide.

On Mon, 2007-06-11 at 16:59 +0200, Jochen Roth wrote:
> This patch adds root-path to the list of requested dhcp options and adds some 
> informative output on the console. 
> This patch is needed by patches against mkinitrd where nash tries to extract 
> the root-path out of the dhclient-lease file.
> 
> Signed-off-by: Jochen Roth <[EMAIL PROTECTED]>
> Index: libdhcp-1.24/dhcp4_nic.c
> ===================================================================
> --- libdhcp-1.24.orig/dhcp4_nic.c
> +++ libdhcp-1.24/dhcp4_nic.c
> @@ -476,6 +476,12 @@ void dhcp4_nic_option_handler( DHCPv4_op
>           control->search_list = strdup( (char*)option->value );
>           break;
>  
> +     case DHCO_ROOT_PATH:
> +         dhc4_log
> +         (   control, LOG_INFO, "DHCPv4 %s - option root-path: %s",
> +             control->if_name, (char*)(option->value)
> +         );
> +         break;
>       case DHCO_HOST_NAME:
>           dhc4_log
>           (   control, LOG_DEBUG, "DHCPv4 %s - option host-name: %s",
> Index: libdhcp-1.24/pump.c
> ===================================================================
> --- libdhcp-1.24.orig/pump.c
> +++ libdhcp-1.24/pump.c
> @@ -86,7 +86,7 @@
>  #include <dhcp4client/isc_dhcp/dhcpd.h>
>  
>  /* DHCP options to request */
> -#define OPTLIST 
> "subnet-mask,broadcast-address,routers,domain-name,domain-name-servers,host-name,static-routes"
> +#define OPTLIST 
> "subnet-mask,broadcast-address,routers,domain-name,domain-name-servers,host-name,static-routes,root-path"
>  
>  enum {
>      OOM,
> 
-- 
David Cantrell <[EMAIL PROTECTED]>
Red Hat / Westford, MA

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Stateless-list mailing list
[email protected]
http://www.redhat.com/mailman/listinfo/stateless-list

Reply via email to