Commit Graph

381 Commits

Author SHA1 Message Date
Sijmen b57194a35b
Merge remote-tracking branch 'upstream/master' 2021-01-18 15:57:26 +01:00
Sijmen 6e6feee88c
Un-nest namespaces, because that's a C++17 feature
For some reason gcc doesn't tell us this
2021-01-18 15:56:36 +01:00
Sijmen 8275e5122d
Move part of Net::Update to HandlePacket 2021-01-18 15:41:35 +01:00
Sijmen 81e426fef4
Reorganize tests into seperate .cpp files 2021-01-13 12:14:18 +01:00
Sijmen 755d025d3f
More ARP tests 2021-01-12 22:29:09 +01:00
Sijmen a102c4d984
Implement first few tests and fix issues with tested files 2021-01-12 16:56:02 +01:00
Stephen White 42a3375ff6 Fixed bugs with remapping the buttons via options.txt
Reported by Frank here https://www.lemon64.com/forum/viewtopic.php?p=934239#934239
2021-01-11 17:10:17 +11:00
Sijmen 81ea9e27ca
Fix TFTP packets being dropped 2021-01-06 15:45:14 +01:00
Stephen White 0ae620842f Fixed #201 with regards to Maverick's single drive copy. 2021-01-06 18:44:40 +11:00
Sijmen f26febe13d
Remove some unused variables 2021-01-06 05:39:53 +01:00
Sijmen d8022f8cf8
Merge remote-tracking branch 'upstream/master' 2021-01-06 05:34:11 +01:00
Sijmen f9376089e0
Fix network initialization, swapped ARP MACs and ICMP responses 2021-01-06 05:31:48 +01:00
Stephen White e1f59e7262 Added support for 42 tracked D64 images
According to https://github.com/excess-c64/v1541commander/blob/master/README.md D64s can be 42 tracks long.
2021-01-01 12:32:17 +11:00
Sijmen 24002b225a
Run clang-format on net files 2020-12-29 13:52:02 +01:00
Sijmen 9e41e71dfa
Add buffer size checks to Net::Arp 2020-12-29 13:28:48 +01:00
Sijmen 4cd1682c4c
Add options for networking and move networking in main to net.cpp 2020-12-29 13:28:23 +01:00
Sijmen adf5172e94
More buffer size checks 2020-12-28 23:44:39 +01:00
Sijmen 57c490da6e
Add buffer size checks to Net::Icmp 2020-12-28 18:35:38 +01:00
Sijmen 56cf8cf447
Add buffer size checks to Net::Ethernet 2020-12-28 17:46:13 +01:00
Sijmen 40ecbd51f6
Namespace ICMP and IPv4, and enum -> enum class 2020-12-28 14:41:27 +01:00
Sijmen de644dc035
Remove unnecessary semicolons from namespace blocks 2020-12-28 14:18:47 +01:00
Sijmen 4059e4be88
Fix styling 2020-12-28 13:36:16 +01:00
Sijmen aec510a47c
Put Udp in namespace and simplify symbol names 2020-12-28 13:26:24 +01:00
Sijmen 118f6b62c2
Move ethernet to their own namespace and create util namespace to avoid cyclic dependencies 2020-12-28 13:26:23 +01:00
Sijmen 8bde798c88
Fix errors in editor in net-tftp.h 2020-12-28 13:26:23 +01:00
Sijmen 9638a0dc3d
Move ARP and TFTP to their own namespaces 2020-12-28 13:26:23 +01:00
Sijmen fc39c7a99f
Base implementation of DHCP 2020-12-28 13:26:23 +01:00
Sijmen bed8266327
Fix compilation cast warning 2020-12-28 13:26:23 +01:00
Sijmen f9f282a595
Move network method definitions to .cpp files 2020-12-28 13:26:23 +01:00
Sijmen 74a92bc9d5
Get rid of the template stuff that didn't work well for this situation. 2020-12-28 13:26:23 +01:00
Sijmen 41ee2d9777
Replace some sizeofs with SerializedLengths 2020-12-28 13:26:23 +01:00
Sijmen 60e186cdc9
Split TFTP code into readable chunks and deduplicate a bunch of code 2020-12-28 13:26:23 +01:00
Sijmen 0c49a541ba
Prototype implementation of TFTP PUT and move networking code to UpdateScreen (which runs on a different core) 2020-12-28 13:26:23 +01:00
Sijmen dfb8fb16fc
Implement PrintFormat which scrolls the screen when overflowing 2020-12-28 13:26:23 +01:00
Sijmen 9cfcb0ddf7
Respond to ICMP Echo Requests (aka pings) 2020-12-28 13:26:23 +01:00
Sijmen 18c5bbd29d
Move a lot of the network logic to net.cpp 2020-12-28 13:26:23 +01:00
Sijmen cff82bbad3
Hackily implement ARP and echo request support 2020-12-28 13:26:22 +01:00
Sijmen 1cabaf2b04
Make make rebuild on header changes 2020-12-28 13:26:22 +01:00
Sijmen a67d2a1945
send pings 2020-12-28 13:26:22 +01:00
Stephen White 1c6093d85e Fix for #201 #200 #199 2020-12-28 15:48:48 +11:00
Stephen White a7a1402a01 Update ffconf.h
Disabled the time stamp functuion. Suggested fix for  #198
2020-12-28 13:58:10 +11:00
Stephen White bc48a56620 Update Makefile.rules
Setthe default makefile.rules to the Pi3
2020-12-27 13:45:12 +11:00
Stephen White 8e87777759 Update DiskImage.cpp
Frank's fix for #200 FindSync was not looping the disk track correctly.
2020-12-27 13:12:05 +11:00
Stephen White 9c1f8320d2
Merge pull request #190 from devMashHub/master
Fix Issue #185.
2020-12-27 12:37:50 +11:00
Stephen White 2f999c7a00
Merge pull request #181 from idolpx/master
Made changes to differentiate between Raspberry Pi 1 Model B Rev 1 (G…
2020-12-27 12:35:46 +11:00
George Belmont 91a213132a Fixed options.txt to leave RotaryEncoderEnable and RotaryEncoderInvert turned off by default. 2020-08-14 08:17:25 -04:00
George Belmont 46381430e1 Added option to invert rotary encoder CLK/DATA pins to reverse operation for certain encoders (Issue#185) 2020-08-14 08:14:06 -04:00
James Johnston abb28ee58f Adjusted pin assignments to make it more consistent between 40 & 26 pin Raspberry Pi boards 2020-06-02 10:17:13 -04:00
James Johnston 3985221eb0 Made changes to differentiate between Raspberry Pi 1 Mobel B Rev 1 (GPIO 0/1) and Rev 2 (GPIO 2/3) pins 2020-04-15 19:34:04 -05:00
Stephen White 4cf352d70e Fixed #170 2020-01-26 16:22:55 +11:00