diff options
author | Susant Sahani <susant@redhat.com> | 2014-07-14 13:34:18 +0530 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-14 11:39:20 +0200 |
commit | edb85f0d8d0a84f27308a3728f3fde3c52b9dce2 (patch) | |
tree | 21f738340ce15e0230d82b53e471c89c3df89791 /src/network/networkd-link.c | |
parent | 5d8e593dce074bff966fc0a46579c61b4f3bc33a (diff) |
networkd: dhcp add vendor class indentifier option 60
Vendor Class Identifier be used by DHCP clients to identify
their vendor type and configuration. When using this option,
vendors can define their own specific identifier values, such
as to convey a particular hardware or operating system
configuration or other identifying information.
Vendor-specified DHCP options—features that let administrators assign
separate options to clients with similar configuration requirements.
For example, if DHCP-aware clients for example we want to separate
different gateway and option for different set of people
(dev/test/hr/finance) in a org or devices for example web/database
servers or let's say in a embedded device etc and require a different
default gateway or DNS server than the rest of clients.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 5f6c22a611..9e057ce0ff 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -2023,6 +2023,13 @@ static int link_configure(Link *link) { return r; } } + + if (link->network->dhcp_vendor_class_identifier) { + r = sd_dhcp_client_set_vendor_class_identifier(link->dhcp_client, + link->network->dhcp_vendor_class_identifier); + if (r < 0) + return r; + } } if (link->network->dhcp_server) { |