2013年9月3日 星期二

Sample code of dhcp client to send dhcp discover, request and inform

參考 Implement DHCP client

增加dhcp request and inform packet的發送功能

dhcp.c

build on Ubuntu 12.04.1 with gcc 4.6.3
gcc dhcp.c
./a.out
輸入1發送dhcp discover
輸入3發送dhcp request
輸入8發送dhcp inform



透過Facebook分享