Commit graph

7 commits

Author SHA1 Message Date
Andrea Odetti
d5f2fbbb78 Uthernet 2: in Windows pcap_sendpacket() wants "u_char *" not "const u_char *".
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-01 20:54:50 +01:00
Andrea Odetti
5dd8e39787 Add support for the Uthernet 2 card.
Just enough to run contiki and A2osX.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-23 11:49:19 +01:00
Andrea Odetti
e4a91e084d TFE: print libpcap version in linux too. 2021-04-17 20:48:21 +01:00
Andrea Odetti
512594cca7 TFE: ensure log lines are \n-terminated. 2021-04-17 20:41:20 +01:00
Andrea Odetti
be8eee37b5 The description is not guaranteed to be present.
Inspired from d1b556c5c5/src/tfe/tfearch.c (L129)

See as well

https://www.tcpdump.org/manpages/pcap_findalldevs.3pcap.html
2021-04-17 20:26:09 +01:00
Andrea Odetti
4c51309e3b libpcap in linux: we can justuse the libpacap provided and link to it directly.
Moreover, add a #include <StdAfx.h> to include windows types (only needed in linux).
2021-04-17 18:44:48 +01:00
Andrea Odetti
6b6a238bcf Make tfe easier to compile in linux. 2021-04-17 18:44:40 +01:00
Renamed from source/Tfe/Tfearch.cpp (Browse further)