<div dir="ltr">I fixed warning when building dhcpd.c.<div><br></div><div>I modified some ipv6 packet structs using flexible array.</div><div><div><div><br></div></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"></blockquote></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">@@ -218,28 +217,28 @@ struct __attribute__((packed)) optval_duid_llt {<br>   uint16_t type;<br>   uint16_t hwtype;<br>   uint32_t time;<br>-  uint8_t *lladdr;<br>+  uint8_t lladdr[];   //flexible<br> };</blockquote><div><div><br></div><div><br></div><div>And the port numbers were hard-coded with default numbers, (ipv4: 67, ipv6 547)</div><div>so -P [port_num] option was not work. I fixed it too.</div><div><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">@@ -962,9 +934,10 @@ static int send_packet(uint8_t broadcast)<br>   padding = 308 - 1 - dhcp_opt_size(gstate.send.send_pkt.options);<br>   packet.iph.protocol = IPPROTO_UDP;<br>   packet.iph.saddr = gconfig.server_nip;<br>-  packet.iph.daddr = (broadcast || (gstate.rcvd.rcvd_pkt.ciaddr == 0))?INADDR_BROADCAST:gstate.rcvd.rcvd_pkt.ciaddr;<br>-  packet.udph.source = htons(67);//SERVER_PORT<br>-  packet.udph.dest = htons(68); //CLIENT_PORT<br>+  packet.iph.daddr = (broadcast || (gstate.rcvd.rcvd_pkt.ciaddr == 0))?<br>+    INADDR_BROADCAST : gstate.rcvd.rcvd_pkt.ciaddr;<br>+  packet.udph.source = htons(gconfig.port);//SERVER_PORT<br>+  packet.udph.dest = gstate.client_port; //CLIENT_PORT</blockquote><div><div><br></div><div><br></div></div></div></div>