这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 嵌入式开发 » MCU » [原创]Starting DHCP server with dhcpsInit(

共2条 1/1 1 跳转至

[原创]Starting DHCP server with dhcpsInit()

菜鸟
2004-11-26 01:37:16     打赏
I am trying to establish a DHCP Server in my VxWorks application. I am trying to do so by first calling to dgcpsInit: STATUS dhcpsInit (DHCPS_CFG_PARAMS *dhcps_params); My problem is that dhcpsInit returns a wrong value (-1), and it doesn't return any error number (errno), so I can't understand what is the problem. I tried to set dhcps_params in many ways (for example: maxdhcpMaxHops = 1, dhcpSPort = 67, dhcpCPort = 68, dhcpMaxMsgSize = 590, dhcpsDfltLease = 3600, dhcpsMaxLease = 3600, pDhcpsLeaseFunc = NULL, pDhcpsAddrFunc = NULL), but it still doesn't work! I'll appriciate any help, Thanks.



关键词: 原创     Starting     server     dhcpsI    

菜鸟
2004-11-26 20:33:00     打赏
2楼
I have solved the problem by myself.

共2条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]