Better comments for rtlplayground.c

This commit is contained in:
logicog
2026-03-09 22:06:57 +01:00
parent e9171d7d22
commit 820477cd27
+2 -3
View File
@@ -949,13 +949,12 @@ void handle_rx(void)
if (uip_len) { if (uip_len) {
tcpip_output(); 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) { if (!management_vlan || management_vlan == rx_packet_vlan) {
uip_arp_ipin(); // Learn MAC addresses in TCP packets uip_arp_ipin(); // Learn MAC addresses in TCP packets
uip_input(); uip_input();
if (uip_len) { if (uip_len) {
// Add ethernet frame uip_arp_out(); // Add ethernet frame
uip_arp_out();
tcpip_output(); tcpip_output();
} }
} }