From 1c2a39c544744506d339aa487789afafba0c7a29 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Kain" Date: Thu, 19 Jan 2017 05:20:29 -0500 Subject: [PATCH] Reorder client_config_t members to reduce structure padding. --- src/ndhc.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/ndhc.h b/src/ndhc.h index 688bc3b..b0a85c0 100644 --- a/src/ndhc.h +++ b/src/ndhc.h @@ -50,19 +50,19 @@ struct client_state_t { }; struct client_config_t { + char interface[IFNAMSIZ]; // The name of the interface to use + char clientid[64]; // Optional client id to use + char hostname[64]; // Optional hostname to use + char vendor[64]; // Vendor identification that will be sent + uint8_t arp[6]; // Our arp address + uint32_t rfkillIdx; // Index of the corresponding rfkill device + int metric; // Metric for the default route + int ifindex; // Index number of the interface to use + uint8_t clientid_len; // Length of the clientid bool quit_after_lease; // Quit after obtaining lease bool abort_if_no_lease; // Abort if no lease bool background_if_no_lease; // Fork to background if no lease bool enable_rfkill; // Listen for rfkill events - char interface[IFNAMSIZ]; // The name of the interface to use - char clientid[64]; // Optional client id to use - uint8_t clientid_len; // Length of the clientid - char hostname[64]; // Optional hostname to use - char vendor[64]; // Vendor identification that will be sent - int metric; // Metric for the default route - int ifindex; // Index number of the interface to use - uint32_t rfkillIdx; // Index of the corresponding rfkill device - uint8_t arp[6]; // Our arp address }; extern struct client_config_t client_config;