]> git.baikalelectronics.ru Git - 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)
commit518c0277f3e7fd19490eb8104fd046684853c01e
tree8e292c4de0611ef24b1e7ac70115c2e70cc5a1f7
parentd1fb15505fb787901990bea96e38379c2ccd368f
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