diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2022-12-15 13:34:52 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2022-12-15 13:34:52 +0100 |
commit | 6c2ddf808ed70bf515daf4d073411d86ec043550 (patch) | |
tree | f732c157b3e2b0f37d6460acabf41f14d17fd4d5 /networking/udhcp/packet.c | |
parent | 242d0562307549af61b234bff545ca13474a2603 (diff) | |
download | busybox-w32-6c2ddf808ed70bf515daf4d073411d86ec043550.tar.gz busybox-w32-6c2ddf808ed70bf515daf4d073411d86ec043550.tar.bz2 busybox-w32-6c2ddf808ed70bf515daf4d073411d86ec043550.zip |
udhcp: add a few comments, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to '')
-rw-r--r-- | networking/udhcp/packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/udhcp/packet.c b/networking/udhcp/packet.c index 78f580ce9..529978189 100644 --- a/networking/udhcp/packet.c +++ b/networking/udhcp/packet.c | |||
@@ -133,6 +133,7 @@ int FAST_FUNC udhcp_send_raw_packet(struct dhcp_packet *dhcp_pkt, | |||
133 | dest_sll.sll_halen = 6; | 133 | dest_sll.sll_halen = 6; |
134 | memcpy(dest_sll.sll_addr, dest_arp, 6); | 134 | memcpy(dest_sll.sll_addr, dest_arp, 6); |
135 | 135 | ||
136 | //TODO: is bind() necessary? we sendto() to this destination, should work anyway | ||
136 | if (bind(fd, (struct sockaddr *)&dest_sll, sizeof(dest_sll)) < 0) { | 137 | if (bind(fd, (struct sockaddr *)&dest_sll, sizeof(dest_sll)) < 0) { |
137 | msg = "bind(%s)"; | 138 | msg = "bind(%s)"; |
138 | goto ret_close; | 139 | goto ret_close; |