1 Mar 2005 07:51
dhcp message exchange
Suganya <suganya <at> dgbmicro.com>
2005-03-01 06:51:33 GMT
2005-03-01 06:51:33 GMT
Hi all, I have attached the dhcpdiscover message forming and sending (which I downloaded from net). In the function bootp_open, we have the following piece of code. /* Bind/connect the sockets */ if (bind_udp_sock(bootp_recv_fd, INADDR_ANY, 68) || bind_udp_sock(bootp_xmit_fd, INADDR_ANY, 0) || setsockopt(bootp_xmit_fd, SOL_SOCKET, SO_BROADCAST, (void *)&optval, sizeof(optval)) || connect_udp_sock(bootp_xmit_fd, INADDR_BROADCAST, 67)) return -1; But when I run this program, I am getting "Permission denied" and no message is being sent. I hope it is due to the access to ports 67 and 68. Is there any remedy for this? regards.
_______________________________________________ dhcwg mailing list dhcwg <at> ietf.org https://www1.ietf.org/mailman/listinfo/dhcwg(Continue reading)
RSS Feed