odhcp6c: enable Non-Blocking DHCPv6 Socket
authorNicolas BESNARD <[email protected]>
Tue, 29 Oct 2024 10:06:15 +0000 (10:06 +0000)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 15:14:48 +0000 (16:14 +0100)
commit6466314e7f623fffd2a9d00a87e8902fad0dfadf
tree8c9e27031a6a2cf3b89fd9d2e03f32506ed73cc5
parent1df65f0caf4647288972b637c89aa4f226c92a7a
odhcp6c: enable Non-Blocking DHCPv6 Socket

Problem:
    The DHCPv6 socket is currently set to blocking mode, which causes
    the program to pause execution whenever it attempts to read from the
    socket. This can lead to delays and hinder the overall
    responsiveness of the application.

Solution:
    Add the set_nonblocking() function, using fcntl() to set the
    O_NONBLOCK flag, allowing the socket to operate in non-blocking
    mode.

Signed-off-by: Nicolas BESNARD <[email protected]>
Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/106
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/dhcpv6.c