From 1ef44c1e4b224019e60bb86478b640c2f87bb010 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Wed, 30 Mar 2011 05:23:46 -0400 Subject: [PATCH] Document DHCP options in bound_if(). --- ndhc/ifchange.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ndhc/ifchange.c b/ndhc/ifchange.c index e7ad27b..16758a3 100644 --- a/ndhc/ifchange.c +++ b/ndhc/ifchange.c @@ -222,14 +222,14 @@ static void bound_if(struct dhcpMessage *packet) snprintf(buf, sizeof buf, "ip:%s:", ip); sockwrite(sockfd, buf, strlen(buf)); - translate_option(sockfd, packet, 0); - translate_option(sockfd, packet, 2); - translate_option(sockfd, packet, 5); - translate_option(sockfd, packet, 9); - translate_option(sockfd, packet, 11); - translate_option(sockfd, packet, 15); - translate_option(sockfd, packet, 16); - translate_option(sockfd, packet, 17); + translate_option(sockfd, packet, 0); // Subnet + translate_option(sockfd, packet, 2); // Router + translate_option(sockfd, packet, 5); // DNS + translate_option(sockfd, packet, 9); // Hostname + translate_option(sockfd, packet, 11); // Domain + translate_option(sockfd, packet, 15); // MTU + translate_option(sockfd, packet, 16); // Broadcast + translate_option(sockfd, packet, 17); // WINS close(sockfd); }