fixed indentation ether_unix

This commit is contained in:
MSharq 2018-10-28 19:40:08 +01:00
parent 0c622863cf
commit cf406ec953

View File

@ -998,16 +998,15 @@ void ether_do_interrupt(void)
if (net_if_type == NET_IF_VDE) {
length = vde_recv(vde_conn, Mac2HostAddr(packet), 1514, 0);
} else {
// Read packet from sheep_net device
#if defined(__linux__)
length = read(fd, Mac2HostAddr(packet), net_if_type == NET_IF_ETHERTAP ? 1516 : 1514);
length = read(fd, Mac2HostAddr(packet), net_if_type == NET_IF_ETHERTAP ? 1516 : 1514);
#else
length = read(fd, Mac2HostAddr(packet), 1514);
length = read(fd, Mac2HostAddr(packet), 1514);
#endif
if (length < 14)
break;
}
if (length < 14)
break;
#if MONITOR
bug("Receiving Ethernet packet:\n");