DHCP with ioLibrary not connecting

Yes, you are correct.

Seems it is. The only I can tell you from looking into source you provided is that function DHCP_init(0, dhcp_buf); should be expected to do the job, but for some reason it does not. Look into the library you use, or look here into hjjeon0608’s post.

Don’t you forget to setSHAR(gWIZNETINFO.mac);?