protocol = ETH_P_ALL;
int sock = ::socket(PF_PACKET, socktype, htons(protocol));
if (sock < 0)
- throw SystemException();
+ SENF_THROW_SYSTEM_EXCEPTION("::socket(...) failed.");
fd(sock);
}
return 0;
ssize_t l = ::recv(fd(),0,0,MSG_PEEK | MSG_TRUNC);
if (l < 0)
- throw SystemException();
+ SENF_THROW_SYSTEM_EXCEPTION("::recv(socket_fd) failed.");
return l;
}