File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22#include < functional>
33extern " C" {
44#include < lwip/netif.h>
5- }; // extern "C"
5+ }; // extern "C"
66
77#define NBNS_PORT 137
88#define NBNS_MAX_HOSTNAME_LEN 32
@@ -94,7 +94,7 @@ void NetBIOS::_onPacket(AsyncUDPPacket &packet) {
9494 append_32 ((void *)&nbnsa.ttl , 300000 );
9595 append_16 ((void *)&nbnsa.data_len , 6 );
9696 append_16 ((void *)&nbnsa.flags , 0 );
97- nbnsa.addr = packet.localIP (); // By default, should be overridden below
97+ nbnsa.addr = packet.localIP (); // By default, should be overridden below
9898 // Iterate over all netifs, see if the incoming address matches one of the netmaskes networks
9999 for (auto netif = netif_list; netif; netif = netif->next ) {
100100 auto maskedip = ip4_addr_get_u32 (netif_ip4_addr (netif)) & ip4_addr_get_u32 (netif_ip4_netmask (netif));
You can’t perform that action at this time.
0 commit comments