Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/networking/udhcp/common.h
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/networking/udhcp/common.h
r2725 r3232 15 15 PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 16 16 17 extern const uint8_t MAC_BCAST_ADDR[6] ; /* six all-ones */17 extern const uint8_t MAC_BCAST_ADDR[6] ALIGN2; /* six all-ones */ 18 18 19 19 … … 81 81 OPTION_IP_PAIR, 82 82 OPTION_STRING, 83 /* Opts of STRING_HOST type will be sanitized before they are passed 84 * to udhcpc script's environment: */ 85 OPTION_STRING_HOST, 83 86 // OPTION_BOOLEAN, 84 87 OPTION_U8, … … 89 92 OPTION_BIN, 90 93 OPTION_STATIC_ROUTES, 94 OPTION_6RD, 91 95 #if ENABLE_FEATURE_UDHCP_RFC3397 92 96 OPTION_DNS_STRING, /* RFC1035 compressed domain name list */ … … 104 108 * http://www.iana.org/assignments/bootp-dhcp-parameters/ 105 109 * Commented out options are handled by common option machinery, 106 * uncommented ones have sp acial cases (grep for them to see).110 * uncommented ones have special cases (grep for them to see). 107 111 */ 108 112 #define DHCP_PADDING 0x00 … … 146 150 //#define DHCP_SIP_SERVERS 0x78 /* RFC 3361. flag byte, then: 0: domain names, 1: IP addrs */ 147 151 //#define DHCP_STATIC_ROUTES 0x79 /* RFC 3442. (mask,ip,router) tuples */ 152 #define DHCP_VLAN_ID 0x84 /* 802.1P VLAN ID */ 153 #define DHCP_VLAN_PRIORITY 0x85 /* 802.1Q VLAN priority */ 148 154 //#define DHCP_MS_STATIC_ROUTES 0xf9 /* Microsoft's pre-RFC 3442 code for 0x79? */ 149 155 //#define DHCP_WPAD 0xfc /* MSIE's Web Proxy Autodiscovery Protocol */ … … 182 188 183 189 extern const struct dhcp_optflag dhcp_optflags[]; 184 extern const char dhcp_option_strings[] ;185 extern const uint8_t dhcp_option_lengths[] ;190 extern const char dhcp_option_strings[] ALIGN1; 191 extern const uint8_t dhcp_option_lengths[] ALIGN1; 186 192 187 193 unsigned FAST_FUNC udhcp_option_idx(const char *name); … … 247 253 248 254 #if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 1 255 # define IF_UDHCP_VERBOSE(...) __VA_ARGS__ 249 256 extern unsigned dhcp_verbose; 250 257 # define log1(...) do { if (dhcp_verbose >= 1) bb_info_msg(__VA_ARGS__); } while (0) … … 262 269 # endif 263 270 #else 271 # define IF_UDHCP_VERBOSE(...) 264 272 # define udhcp_dump_packet(...) ((void)0) 265 273 # define log1(...) ((void)0) … … 275 283 /* 2nd param is "struct option_set**" */ 276 284 int FAST_FUNC udhcp_str2optset(const char *str, void *arg); 277 278 uint16_t udhcp_checksum(void *addr, int count) FAST_FUNC;279 285 280 286 void udhcp_init_header(struct dhcp_packet *packet, char type) FAST_FUNC; … … 306 312 const char *interface) FAST_FUNC; 307 313 314 /* note: ip is a pointer to an IPv6 in network order, possibly misaliged */ 315 int sprint_nip6(char *dest, /*const char *pre,*/ const uint8_t *ip) FAST_FUNC; 316 308 317 POP_SAVED_FUNCTION_VISIBILITY 309 318
Note:
See TracChangeset
for help on using the changeset viewer.