Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9BD42C433FE for ; Tue, 8 Nov 2022 06:17:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E891884FCA; Tue, 8 Nov 2022 07:17:45 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="FhReCzEZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E61084F34; Tue, 8 Nov 2022 07:17:44 +0100 (CET) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5336A84F34 for ; Tue, 8 Nov 2022 07:17:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=paul.liu@linaro.org Received: by mail-pl1-x62e.google.com with SMTP id p21so13286240plr.7 for ; Mon, 07 Nov 2022 22:17:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=sJVooMhcRbZ1BwNqnz1ZeuIP+9FM7W0yclQQyg2v0mk=; b=FhReCzEZDzLByk501z3FNesg2pVC0zwAJ5YE9fx1VMuKjm+LZkIXvKhYBadsrgd3wx 7ZM8Eq04/GQAHlDsAkH/VDrQqSMeAWfQ64fJkqxfjaLS0tKfzCTc04l5iw0qDLwPLJah YT3f2Jfoy2OiyhDtpcPlDpdyDcWDz1jnGX6Nr4+QWcT0ItuYBcCdvHOyPCbQ2JHorWbS gDWHF73N79bWlBCMr2Oiih2BO9KtmRLn6IbFXCEbddwsP5aCE4GfsNFcqA1kLBMsxoz8 iMa9wP0QTKJridvRU9qrXbTEuHg1l8uBh+bL/V7ObOK4/uc8pRgNmtHOTJHYRrqYbcOL PiYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sJVooMhcRbZ1BwNqnz1ZeuIP+9FM7W0yclQQyg2v0mk=; b=Qro0P7sqKlbz95z7Rw1Byqp6DmAgqfhPVjXaspPP4cR7vVeZwfW1eAwWLDr4cKtfr7 GiGi+COv/bO3t8EkGYnSbkPLFUwaGHCE5qAw9uH51wOu0jt83jKnEN1hS+6JyyP9VWMB mtkJ0aecxqoFpBMDO2+LmVQrUSN83Tr8w5ROeqkQVxerYeDhhGK6e2SB5V6ZXKbtKt/a huXVo6my/2eiD2wAh7dvfwfuJ3IU5UlAXoPLKSgYhJ8FOk1pRCYZFwMP953V/ZnbvQ4T ci3owpE3CYKgYAzxfBZQu74yxzHL9fRfFwkkzMvQOjoIL/CWtuxUPAHcj2Bw79OzKjz0 j7RA== X-Gm-Message-State: ACrzQf1GDEG+gC9imSU/ROOsvoV92FeDqAIwjBMn1eI9UuU0mnXmwQbg 0VOBwYbdK3RbzEhGqnKuX2IaUSqnISc8Gg== X-Google-Smtp-Source: AMsMyM4bzDMiTotWcseMaqtnQ3yjxokhCx+D5BQ6sOZin5cg8zRMrkOBfDiUCUwew8/MlKF3dRkPqw== X-Received: by 2002:a17:903:41c2:b0:187:3fb8:79bc with SMTP id u2-20020a17090341c200b001873fb879bcmr35437375ple.18.1667888259290; Mon, 07 Nov 2022 22:17:39 -0800 (PST) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id g18-20020aa796b2000000b0056da8c41bbasm5533686pfk.161.2022.11.07.22.17.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 22:17:38 -0800 (PST) From: "Ying-Chun Liu (PaulLiu)" X-Google-Original-From: "Ying-Chun Liu (PaulLiu)" To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH v20 0/4] add TCP and HTTP for downloading images Date: Tue, 8 Nov 2022 14:17:27 +0800 Message-Id: <20221108061731.1589327-1-paulliu@debian.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by Duncan, didn't tracked. v13: Fix some issues which is reviewed by Christian v14: Add options to enable/disable SACK. v15: Fix various syntax errors reviewed by Michal. Remove magic numbers. Use kernel-doc format. v16: Add more kernel-doc. Fix more double spaces. v17: Fix wget with address timeout issue reported by Ramon. v18: Add documentation for wget command. v19: Add unit test for wget command. v20: Rebase to latest master and resolve conflict. Ying-Chun Liu (PaulLiu) (4): net: Add TCP protocol net: Add wget application doc: cmd: wget: add documentation test: cmd: add test for wget command. cmd/Kconfig | 7 + cmd/net.c | 13 + doc/usage/cmd/wget.rst | 61 ++++ doc/usage/index.rst | 1 + include/net.h | 38 ++- include/net/tcp.h | 299 +++++++++++++++++ include/net/wget.h | 22 ++ net/Kconfig | 16 + net/Makefile | 2 + net/net.c | 36 +++ net/tcp.c | 720 +++++++++++++++++++++++++++++++++++++++++ net/wget.c | 438 +++++++++++++++++++++++++ test/cmd/Makefile | 1 + test/cmd/wget.c | 206 ++++++++++++ 14 files changed, 1850 insertions(+), 10 deletions(-) create mode 100644 doc/usage/cmd/wget.rst create mode 100644 include/net/tcp.h create mode 100644 include/net/wget.h create mode 100644 net/tcp.c create mode 100644 net/wget.c create mode 100644 test/cmd/wget.c -- 2.35.1