Uthernet II: 2 fixes and minor changes (PR #1100)

* Enable virtual DNS by default.
* Improve handling of header size:
This fixes an issue in UDP, where it would not take the header size into account when deciding how much to read.
* IPRAW socket. Fix an issue where the header would include "our" IP Address.
The doc is not very clear 5.2.3: they say "destination". But for consistency with UDP (5.2.2) where it seems clear that this is the peer's ip, we replace with the "destination" of the socket, or the "source" of the packet.
* minor tweak: signal with SOCK_SYNSENT that a connection is being established.
* remove Socket::myErrno as it serves no purpose.
It is a duplicate of (sn_sr == W5100_SN_SR_SOCK_SYNSENT).
* add some logging when reading/writing on a closed socket.
This commit is contained in:
Andrea
2022-05-19 20:30:34 +02:00
committed by GitHub
parent 6a5ea92a4e
commit 60cbbb40db
7 changed files with 131 additions and 70 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "Pravets.h"
#include "Speaker.h"
#include "Speech.h"
#include "HardDisk.h"
#include "Harddisk.h"
#include "Configuration/Config.h"
#include "Configuration/IPropertySheet.h"