lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Multiple instance of lwip on Windows


From: Giuseppe Modugno
Subject: [lwip-users] Multiple instance of lwip on Windows
Date: Thu, 16 May 2019 17:19:43 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

I have a project that uses lwip/pcapif on Windows and it works well.

I wanted to run two instances of the same program with different mac address, ip address and so on. I started patching pcapif_low_level_init() to retrieve the mac address from an externa function (the original code used a fixed mac address):

static void
pcapif_low_level_init(struct netif *netif)
{
  u8_t my_mac_addr[ETH_HWADDR_LEN];     // = LWIP_MAC_ADDR_BASE;
  bsp_ENET_GetMacADDR(my_mac_addr);
  int adapter_num = PACKET_LIB_ADAPTER_NR;
  ...

However even after this change, two instances don't work simultaneously.

Do you know why? Is it a limitation of pcap libraries?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]