lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [Win32] Use pcap_oid_get_request() instead?


From: Gisle Vanem
Subject: [lwip-devel] [Win32] Use pcap_oid_get_request() instead?
Date: Fri, 12 Aug 2016 15:02:27 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

I've toying with simplifying the src/contrib/ports/win32/pcap*.c
code. Since way back, libpcap has the function pcap_oid_get_request()
to simplify/replace PacketRequest() on Windows. Thus the Win32-port should
build with no dependency on Packet.lib (or libpacket.a). Note the:
  Unused libraries:
   f:/MingW32/src/inet/libpcap/WinPcap/lib/Packet.lib

in the lwip.map or test-app.map files.

>From my test-app.exe it seems to work fine:
  status_callback==UP, local interface IP is 10.0.0.23
  setting sys-time: 1471003844
  3com.com: 15.201.225.10

Unplug my Eth-cable:
  link_callback==DOWN

Plug the cable back:
  link_callback==UP
  link_callback==DOWN
  link_callback==UP
  status_callback==UP, local interface IP is 10.0.0.24

I'm not sure how and where to put my patches. If there
is any interest? Who is maintaining the Win32 port?

-- 
--gv



reply via email to

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