Andrea Odetti
abc4a4e1d3
Safer check that Uthernet is active.
...
Unfortunately we cannot force a hot-activation as this will cause SegFaults in the TFE code.
It does not check if the pcap handle is good, but relies on the initialisation to have succeeded.
Unfortunately, visual feedback on the settings is lost.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-05 16:57:12 +01:00
Andrea Odetti
a7e2ca580c
Fix for when libslirp is indeed present.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-17 19:48:33 +01:00
Andrea Odetti
6753e62abd
Allow compilation to work without libslirp (not available on Pi).
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-17 19:26:11 +01:00
Andrea Odetti
9393f04d3d
Uthernet II: re-initialise dataAddress after a reset.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-12 11:02:55 +01:00
Andrea Odetti
b78f20d915
Uthernet II: fix a bug when TFE buffer size was reduced for 2+ packets.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-12 11:02:30 +01:00
Andrea Odetti
ffa5a35ba8
U2: handle TCP Disconnect.
2021-05-09 19:49:40 +01:00
Andrea Odetti
10e769735a
U2: drop packets from libslirp if the queue is full (we keep at most 10).
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-09 19:49:18 +01:00
Andrea Odetti
36df9170bc
Uthernet II: merge UDP and TCP sockets.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-08 20:51:44 +01:00
Andrea Odetti
94a20126b7
Uthernet II: fix case of using TFE.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-08 18:30:55 +01:00
Andrea Odetti
44ddf798f2
Uthernet II: add support for UDP.
...
Only client (as it does not bind yet).
2021-05-08 18:30:32 +01:00
Andrea Odetti
22a9c64010
Uthernet 2: add settings.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-05 15:56:10 +01:00
Andrea Odetti
d2d241cf9c
Uthernet 2: add support for TCP sockets.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-05 15:02:42 +01:00
Andrea Odetti
577a3dfa4b
Uthernet 2: minor improvements on MR register.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-01 21:09:42 +01:00
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
7f3ecac9b1
Uthernet 2: add some logging to debug TCP mode (used by ii-vision).
2021-05-01 20:39:09 +01:00
Andrea Odetti
c50bef8cb2
Uthernet 2: introduce some #defines to ease readability.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-01 19:31:23 +01:00
Andrea Odetti
df0d6bdb95
Uthernet 2: new implementation based on libslirp which does not require extra capabilities.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-30 20:10:30 +01:00
Andrea Odetti
8fd0b0f5a6
Uthernet 2: use isprint();
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-28 20:36:03 +01:00
Andrea Odetti
1c9beb246b
Uthernet2: move to separate folder.
...
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-28 20:32:01 +01:00