diff --git a/rtlplayground.c b/rtlplayground.c index 041c7ed..234bb29 100644 --- a/rtlplayground.c +++ b/rtlplayground.c @@ -949,13 +949,12 @@ void handle_rx(void) if (uip_len) { tcpip_output(); } - } else if (uip_buf[ETHERTYPE_OFFSET] == 0x08 && uip_buf[ETHERTYPE_OFFSET + 1] == 0x00) { // TCP? + } else if (uip_buf[ETHERTYPE_OFFSET] == 0x08 && uip_buf[ETHERTYPE_OFFSET + 1] == 0x00) { // IP packet? if (!management_vlan || management_vlan == rx_packet_vlan) { uip_arp_ipin(); // Learn MAC addresses in TCP packets uip_input(); if (uip_len) { - // Add ethernet frame - uip_arp_out(); + uip_arp_out(); // Add ethernet frame tcpip_output(); } }