svn commit: trunk/busybox/networking/udhcp

vda at busybox.net vda at busybox.net
Mon Feb 4 13:23:53 UTC 2008


Author: vda
Date: 2008-02-04 05:23:53 -0800 (Mon, 04 Feb 2008)
New Revision: 20945

Log:
udhcp: ifdef out unused members



Modified:
   trunk/busybox/networking/udhcp/dhcpc.h
   trunk/busybox/networking/udhcp/dhcpd.h


Changeset:
Modified: trunk/busybox/networking/udhcp/dhcpc.h
===================================================================
--- trunk/busybox/networking/udhcp/dhcpc.h	2008-02-04 13:12:16 UTC (rev 20944)
+++ trunk/busybox/networking/udhcp/dhcpc.h	2008-02-04 13:23:53 UTC (rev 20945)
@@ -29,7 +29,9 @@
 	uint8_t *hostname;              /* Optional hostname to use */
 	uint8_t *fqdn;                  /* Optional fully qualified domain name to use */
 	int ifindex;                    /* Index number of the interface to use */
+#if ENABLE_FEATURE_UDHCP_PORT
 	uint16_t port;
+#endif
 	uint8_t arp[6];                 /* Our arp address */
 	uint8_t opt_mask[256 / 8];      /* Bitmask of options to send (-O option) */
 };

Modified: trunk/busybox/networking/udhcp/dhcpd.h
===================================================================
--- trunk/busybox/networking/udhcp/dhcpd.h	2008-02-04 13:12:16 UTC (rev 20944)
+++ trunk/busybox/networking/udhcp/dhcpd.h	2008-02-04 13:23:53 UTC (rev 20945)
@@ -28,7 +28,9 @@
 
 struct server_config_t {
 	uint32_t server;                /* Our IP, in network order */
+#if ENABLE_FEATURE_UDHCP_PORT
 	uint16_t port;
+#endif
 	/* start,end are in host order: we need to compare start <= ip <= end */
 	uint32_t start_ip;              /* Start address of leases, in host order */
 	uint32_t end_ip;                /* End of leases, in host order */




More information about the busybox-cvs mailing list