Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

n-dhcp4: add new client probe function to send RELEASE message #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ffmancera
Copy link
Contributor

The new function uses the client probe connection to send a RELEASE message. Returns zero if successful otherwise returns non-zero value.

The new function uses the client probe connection to send a RELEASE
message. Returns zero if successful otherwise returns non-zero value.

Signed-off-by: Fernando Fernandez Mancera <[email protected]>

r = n_dhcp4_c_connection_start_request(&probe->connection, request_out, 0);
if (r)
return r;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will keep resending the DHCPDECLINE message, since it stays in connection->request. I think you need to use n_dhcp4_c_connection_send_request() directly, don't you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants