Commit graph

19 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
b1e431d17d Uthernet: avoid assertions or memory errors in some corner cases.
1) tfe_deactivate_i: there is no need to check as the code can be called anyway. This happens is the interface could not be opened properly (lack of capabilities)
2) tfe_shutdown: free() can alreayd handle NULL. Correctly mark the pointer as freed.
2021-04-18 17:57:54 +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
Kelvin Lee
0139878dd7
x64 enabling (PR #747)
Here are a few changes to make 64-bit build possible.
The changes are mainly to use windows api in the correct way that works for both 32-bit and 64-bit builds.
2021-01-01 12:57:40 +00:00
Andrea
93346c215f
Cleanup types and include's to ease GCC compilation. (PR #881)
. Do not include alarm.h as it is not needed.
The code in alarm.h is not complete: all the extern functions are missing and different linkers might complain about this.

. Do not redefine some windows.h types in VICE/types.h as it becomes harder to keep them consistent.
Biggest problem is DWORD_IS_LONG as the best way to define it in linux 64 bit is as an int. Prefer to use StdAfx.h.
2020-11-29 17:22:50 +00:00
tomcw
225296635a Uthernet card: added support for Npcap for Win10 (#822)
. log the version of wpcap.dll (Npcap or WinPcap)
2020-08-16 17:05:49 +01:00
tomcw
598b20fb52 Refactor: Use INTCXROM instead of SLOTCXROM to be consistent with UTAIIe (fixes #419) 2018-04-06 22:36:54 +01:00
Andrea
6051bc55d0 Changes to ease code compilation in gcc. (#541)
Changes to ease code compilation in GCC.

Disk_t and HDD contain a std::string and for this reason they need a proper constructor, ZeroMemory is not guaranteed to work.
2018-02-24 15:12:40 +00:00
tomcw
34094f7299 Fix static analysis issues raised in PR #517 2017-12-17 19:35:54 +00:00
tomcw
64dd4c22c2 Refactor: Rename IORead_Cxxx() to IO_Cxxx(), and use for writes too. Re-enable support for writes to NSC (which was accidently removed at 5470feb). 2017-05-21 22:06:37 +01:00
tomcw
52450aa7f7 These 2 combined fix #418:
1) Uthernet card now returns floating bus for slot ROM at $Cs00-CsFF (where s=3).
2) Fixed IoHandlerCardsIn() to not map in the card in slot3's slot ROM when SLOTC3ROM=0.

Also:
. moved the typedef 'iofunction' from common.h to memory.h
2017-05-13 22:07:53 +01:00
Kelvin Lee
5e59f11625 Fixed a compiler warning. 2016-12-29 11:37:54 -05:00
Kelvin Lee
c0736aaabf Print pointers in correct way. 2016-12-29 11:01:12 -05:00
tomcw
d591dd006b Remove the top-level AppleWin folder 2014-05-23 22:59:02 +01:00