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

udhcpc: DHCP release is not sent if ARP entry is not already present #92

Open
jcpvdm opened this issue Aug 21, 2024 · 2 comments
Open

Comments

@jcpvdm
Copy link

jcpvdm commented Aug 21, 2024

Environment:

  • BusyBox v1.36.1 (2024-06-10 15:30:53 UTC) multi-call binary
  • Docker container "Alpine Linux edge" 3.21.0_alpha20240807
  • macvlan interface on a non-default namespace
  • linux kernel 5.14.0-362.18.1.el9_3.0.1.x86_64

Problem
Sending signal USR2 to release IPv4 only generates a DHCP Release message if there is an already existing ARP entry that resolves the next-hop. If there isn't, the IP is removed from the interface but DHCP Release message is not sent.

I see ARP request-reply at the moment, therefore I suspect it is attempting to send the release message but is removing the IP address too quickly from the interface, and by the time ARP resolution completes there is no IP address available to source the DHCP Release message, dropping the packet.

/ # kill -USR2 24426
/ # udhcpc: unicasting a release of 10.112.240.141 to 10.223.255.118
udhcpc: sending release
udhcpc: entering released state

#tcpdump output
11:12:17.052045 ARP, Request who-has 10.112.192.1 tell 10.112.240.141, length 28
11:12:17.081806 ARP, Reply 10.112.192.1 is-at 00:00:5e:00:01:7e, length 46
@xandaaah
Copy link

xandaaah commented Aug 29, 2024

This isn't the official git repo, this is just a mirror of the one at busybox.org.

@jcpvdm
Copy link
Author

jcpvdm commented Aug 29, 2024

This isn't the official git repo, this is just a mirror of the one at busybox.org.

Thanks for notifying! I was prepared to wait a few more months 😄

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

No branches or pull requests

2 participants