Commit 74271851 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Warn when unable to resize receive buffer.

parent 0b5ae397
......@@ -237,7 +237,11 @@ interface_up(struct interface *ifp, int up)
return interface_up(ifp, 0);
}
resize_receive_buffer(mtu);
rc = resize_receive_buffer(mtu);
if(rc < 0)
fprintf(stderr, "Warning: couldn't resize "
"receive buffer for interface %s (%d) (%d bytes).\n",
ifp->name, ifp->ifindex, mtu);
if(IF_CONF(ifp, wired) == CONFIG_NO) {
wired = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment