udhcpc: regularize the names of receiving functions,
pause on "serious failure to receive". Some misc fixes are also folded in here.
This commit is contained in:
@ -257,7 +257,7 @@ static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **cli
|
||||
if (select(max_socket + 1, &rfds, NULL, NULL, &tv) > 0) {
|
||||
/* server */
|
||||
if (FD_ISSET(fds[0], &rfds)) {
|
||||
packlen = udhcp_recv_packet(&dhcp_msg, fds[0]);
|
||||
packlen = udhcp_recv_kernel_packet(&dhcp_msg, fds[0]);
|
||||
if (packlen > 0) {
|
||||
pass_back(&dhcp_msg, packlen, fds);
|
||||
}
|
||||
|
Reference in New Issue
Block a user