From 62505d81360dfb7cbf3749eda494ddb1b2b2d0ed Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 14 Feb 2009 10:27:36 +0000 Subject: [PATCH] Fixing Ethernet client connect code to properly chance source port each time. --- hardware/libraries/Ethernet/Client.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hardware/libraries/Ethernet/Client.cpp b/hardware/libraries/Ethernet/Client.cpp index 6c19b8fce..c62e26c00 100644 --- a/hardware/libraries/Ethernet/Client.cpp +++ b/hardware/libraries/Ethernet/Client.cpp @@ -33,8 +33,7 @@ uint8_t Client::connect() { _srcport++; - // XXX: what port should we connect from? - socket(_sock, Sn_MR_TCP, _port, 1024 + _srcport); + socket(_sock, Sn_MR_TCP, 1024 + _srcport, 0); if (!::connect(_sock, _ip, _port)) return 0;