Make nd-proxy handle the interface being shutdown gracefully

Signed-off-by: Scott Parlane <scott.parlane@alliedtelesis.co.nz>
This commit is contained in:
Carl Smith 2016-10-19 11:34:03 +13:00 committed by Scott Parlane
parent df16c053b0
commit a35def5b52

View File

@ -237,8 +237,8 @@ handle_fd(gint fd, GIOCondition condition, gpointer data)
mhdr.msg_iov = &iov;
mhdr.msg_iovlen = 1;
if ((len = recvmsg(fd, &mhdr, 0)) < 0) {
ERROR("Rx(%s):Interface has gone away\n", iface->name);
exit(-1);
DEBUG("Rx(%s):Interface has gone away\n", iface->name);
return true;
}
/* Check we have at least the icmp header */