OMAPI Programming
劲草
brilliant_er at yahoo.cn
Thu Dec 17 07:23:03 UTC 2009
Hello,
I'm a new comer, and I'm very sorry to interrupt you.
When I try to use programming to connect dhcpd by the given programme, the response is following:
Not successful !
dhcpctl_wait_for_completion: no key specified value of waitstaus is 46
Partial code is following:
const char *keyname = "omaip_key";
const char *algorithm = "hmac-md5";
const char *secret = "?";
status = dhcpctl_connect (&connection, "121.87.23.208",7911, ?);
if (waitstatus != ISC_R_SUCCESS) {
/* server not authoritative */
printf ( " Not successful ! \n");
fprintf (stderr, "dhcpctl_wait_for_completion: %s value of waitstaus is %d\n",isc_result_totext
(waitstatus), (int)waitstatus);
//exit (0);
}
I think the problem is at two "?",but I cannot deal with,could you help me?
Thanks for you help!
Regards,
John
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091217/7d744104/attachment.html>
More information about the dhcp-users
mailing list