diff options
Diffstat (limited to 'networking/udhcp/dhcprelay.c')
-rw-r--r-- | networking/udhcp/dhcprelay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/dhcprelay.c b/networking/udhcp/dhcprelay.c index 42378d602..a6483fc1f 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c | |||
@@ -256,7 +256,7 @@ static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **cli | |||
256 | if (select(max_socket + 1, &rfds, NULL, NULL, &tv) > 0) { | 256 | if (select(max_socket + 1, &rfds, NULL, NULL, &tv) > 0) { |
257 | /* server */ | 257 | /* server */ |
258 | if (FD_ISSET(fds[0], &rfds)) { | 258 | if (FD_ISSET(fds[0], &rfds)) { |
259 | packlen = udhcp_get_packet(&dhcp_msg, fds[0]); | 259 | packlen = udhcp_recv_packet(&dhcp_msg, fds[0]); |
260 | if (packlen > 0) { | 260 | if (packlen > 0) { |
261 | pass_back(&dhcp_msg, packlen, fds); | 261 | pass_back(&dhcp_msg, packlen, fds); |
262 | } | 262 | } |