[PATCH v2 0/3] dhcp: add RFC 1533- and 2132-compliant client-id option

Grant Erickson marathon96 at gmail.com
Mon Feb 13 09:56:06 PST 2012


Some Internet gateways and Wi-Fi access points are unhappy when the
DHCPv4 client-id option (61) is missing and will refuse to issue a
DHCP lease. Adding the client-id option placates these devices.

This patch adds a RFC 1533- and 2132-compliant DHCP client-id option
(61) to DHCPv4 packets.

  v0: Initial submission.
  v1: Break initial patch into three parts.
  v2: Tweak comments per Daniel's feedback.

Grant Erickson (3)
  gdhcp: Refactor alloc_dhcp_option to accept string or raw data.
  gdhcp: Add free function to add client-id option to sent packets.
  dhcp: Specify the client-id option to be added to sent packets.

 gdhcp/client.c |   50 +++++++++++++++++++++++++++++++++++++++++++-------
 gdhcp/gdhcp.h  |    2 ++
 src/dhcp.c     |    2 ++
 3 files changed, 47 insertions(+), 7 deletions(-)
--
1.7.8.2



More information about the connman mailing list