trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
This commit is contained in:
@@ -6,4 +6,6 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
const uint8_t MAC_BCAST_ADDR[6] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
const uint8_t MAC_BCAST_ADDR[6] ALIGN2 = {
|
||||
0xff, 0xff, 0xff, 0xff, 0xff, 0xff
|
||||
};
|
||||
|
@@ -180,7 +180,7 @@ int udhcpc_main(int argc, char **argv)
|
||||
OPT_v = 1 << 17,
|
||||
};
|
||||
#if ENABLE_GETOPT_LONG
|
||||
static const char udhcpc_longopts[] =
|
||||
static const char udhcpc_longopts[] ALIGN1 =
|
||||
"clientid\0" Required_argument "c"
|
||||
"clientid-none\0" No_argument "C"
|
||||
"vendorclass\0" Required_argument "V"
|
||||
|
@@ -24,7 +24,7 @@ int dumpleases_main(int argc, char **argv)
|
||||
OPT_f = 0x4, // -f
|
||||
};
|
||||
#if ENABLE_GETOPT_LONG
|
||||
static const char dumpleases_longopts[] =
|
||||
static const char dumpleases_longopts[] ALIGN1 =
|
||||
"absolute\0" No_argument "a"
|
||||
"remaining\0" No_argument "r"
|
||||
"file\0" Required_argument "f"
|
||||
|
@@ -52,7 +52,7 @@ const struct dhcp_option dhcp_options[] = {
|
||||
};
|
||||
|
||||
/* Lengths of the different option types */
|
||||
const unsigned char option_lengths[] = {
|
||||
const unsigned char option_lengths[] ALIGN1 = {
|
||||
[OPTION_IP] = 4,
|
||||
[OPTION_IP_PAIR] = 8,
|
||||
[OPTION_BOOLEAN] = 1,
|
||||
|
Reference in New Issue
Block a user