]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ipconfig: send Client-identifier in DHCP requests
authorLi RongQing <roy.qing.li@gmail.com>
Thu, 15 Oct 2015 08:54:36 +0000 (16:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2015 02:23:52 +0000 (19:23 -0700)
commit26fb342c734061859fec1bd9e987bb6b78061ef0
tree8e292c4de0611ef24b1e7ac70115c2e70cc5a1f7
parent4be3158abe1e02d24f82b34101e41d662fae2185
ipconfig: send Client-identifier in DHCP requests

A dhcp server may provide parameters to a client from a pool of IP
addresses and using a shared rootfs, or provide a specific set of
parameters for a specific client, usually using the MAC address to
identify each client individually. The dhcp protocol also specifies
a client-id field which can be used to determine the correct
parameters to supply when no MAC address is available. There is
currently no way to tell the kernel to supply a specific client-id,
only the userspace dhcp clients support this feature, but this can
not be used when the network is needed before userspace is available
such as when the root filesystem is on NFS.

This patch is to be able to do something like "ip=dhcp,client_id_type,
client_id_value", as a kernel parameter to enable the kernel to
identify itself to the server.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/filesystems/nfs/nfsroot.txt
net/ipv4/ipconfig.c