File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
#include < functional>
3
3
extern " C" {
4
4
#include < lwip/netif.h>
5
- }; // extern "C"
5
+ }; // extern "C"
6
6
7
7
#define NBNS_PORT 137
8
8
#define NBNS_MAX_HOSTNAME_LEN 32
@@ -94,7 +94,7 @@ void NetBIOS::_onPacket(AsyncUDPPacket &packet) {
94
94
append_32 ((void *)&nbnsa.ttl , 300000 );
95
95
append_16 ((void *)&nbnsa.data_len , 6 );
96
96
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
98
98
// Iterate over all netifs, see if the incoming address matches one of the netmaskes networks
99
99
for (auto netif = netif_list; netif; netif = netif->next ) {
100
100
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