udhcp: add PXELINUX config file option (code 209) definition
[oweals/busybox.git] / networking / udhcp / d6_common.h
index 88afaf8af3e9bf6e76c77983b815dd83676477b1..eb211ea0f14517994c93e9c91a2ac3e0d35bf066 100644 (file)
@@ -54,10 +54,10 @@ struct udp_d6_packet {
 /*** Options ***/
 
 struct d6_option {
-       uint8_t code;
        uint8_t code_hi;
-       uint8_t len;
+       uint8_t code;
        uint8_t len_hi;
+       uint8_t len;
        uint8_t data[1];
 } PACKED;
 
@@ -81,11 +81,16 @@ struct d6_option {
 #define D6_OPT_RECONF_MSG    19
 #define D6_OPT_RECONF_ACCEPT 20
 
+#define D6_OPT_IA_PD         25
+#define D6_OPT_IAPREFIX      26
+
 /*** Other shared functions ***/
 
 struct client6_data_t {
        struct d6_option *server_id;
        struct d6_option *ia_na;
+       char **env_ptr;
+       unsigned env_idx;
 };
 
 #define client6_data (*(struct client6_data_t*)(&bb_common_bufsiz1[COMMON_BUFSIZE - sizeof(struct client6_data_t)]))
@@ -110,7 +115,11 @@ int FAST_FUNC d6_send_kernel_packet(
                struct in6_addr *dst_ipv6, int dest_port
 );
 
+#if defined CONFIG_UDHCP_DEBUG && CONFIG_UDHCP_DEBUG >= 2
 void FAST_FUNC d6_dump_packet(struct d6_packet *packet);
+#else
+# define d6_dump_packet(packet) ((void)0)
+#endif
 
 
 POP_SAVED_FUNCTION_VISIBILITY