Hi, I think in package dhcp, in DHCPClient::make_discovery it should be memcpy(&(discover_msg->magic), DHCP_OPTIONS_COOKIE, 4); option_ptr = discover_msg->options; instead of memcpy(discover_msg->options, DHCP_OPTIONS_COOKIE, 4); option_ptr = discover_msg->options + 4;
and in DHCPClient::make_release memcpy((unsigned char*)&(release_msg->magic), DHCP_OPTIONS_COOKIE, 4); option_ptr = release_msg->options; instead of memcpy(release_msg->options, DHCP_OPTIONS_COOKIE, 4); option_ptr = release_msg->options + 4; otherwise I think the packages are not created correctly and seem to be dropped. Nick PS. Hopefully this is the correct place to send this... If not excuse me. Btw click is cool! _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
