earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 boards
GNU Lesser General Public License v2.1
1.88k stars 394 forks source link

Use built-in LWIP call to determine NetBIOS IP #2235

Closed earlephilhower closed 3 weeks ago

earlephilhower commented 3 weeks ago

Instead of manually iterating over netifs to find the one a packet came in over for NetBIOS name resolution, use a built-in LWIP callback that's available for udp_recv callbacks. Shrinks and simplifies NetBIOS code.