Add dhcp server bundle and unit test

line 218 ~ 244 could be extracted as another function for more readable.