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 3A506C43334 for ; Fri, 10 Jun 2022 18:10:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1337384403; Fri, 10 Jun 2022 20:10:24 +0200 (CEST) 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="N59ekLNf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E40CB84401; Fri, 10 Jun 2022 20:10:21 +0200 (CEST) Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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 4E4698431E for ; Fri, 10 Jun 2022 20:10:18 +0200 (CEST) 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-x636.google.com with SMTP id r1so6147563plo.10 for ; Fri, 10 Jun 2022 11:10:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XpVIur1VfMuq2bSI2JUu0f1xhjr+X31nBpPCH7zNd/Q=; b=N59ekLNf05pSzFN35/SZ1nvBcP6WfC5qAUNnJVtAjxEf0zs+1HSdjvy9LosmE5RiEy yAwS+LvG7oTxT6/mdehxhgBgLHx1jTUqNTfyUoWJtD9QKN+b+6jw6/NNGGF9eyW4ZOtH SxbHPW8iI6Rk33CE7HecThuIbYykxunu7pv21Qo7Ju5qPpFcYdlva93eQxKWsxOkbpRm tFKYNM3zWfFU6nSCZH6e/8Vz8by/VCog8o4n/jvyKPgclcm0t6X2Bn3l0ENtjMvkiFhO KKd0k51eQnfZgVlsvUU60Un8nEvQ3WrkMBu3Oqj3XvjrLawaKndG90qT8zTEEIg6b4eB bN6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XpVIur1VfMuq2bSI2JUu0f1xhjr+X31nBpPCH7zNd/Q=; b=4Ap/REbtnQ60rlXToygP6RIk0mQRxhGKvBkPxsXFA3MXn2ZKt+IOSLHAtNge3N84cR enxQ/GUaxd91pPydS4CyobRARROf7Q1oSA/VPMV/QDj+tTLmioMxXyhl+cPj3SwSXIxi pju4zH8gmvuD5HFemeSZKQqYBWRjU0N17zFKBeB7syKuSwXCfDuXvWBviz1GSP5Z16CT ySmThofiTAUUIIp4acLdr6TyDB18AhdVuDzhvxfjtID4lbK2xpvcOXnmnqIZCo9E/o6v /uYUMy/nyNsmP1xcTcWPJOJowZerbZ/imdN1DKc7B0leMbzXIdKKrr/cOJj7NTpULaZA ud0A== X-Gm-Message-State: AOAM530qWzrVOuDrtV2pm9pV/apbVqEM1lxjr3gmU9e/AIjSuz6KLIGm rSOEJ/xPPQsaErmVMMwvhh7GXiEajlwpZRpL X-Google-Smtp-Source: ABdhPJwt2FJRZ8KntHmulBMq6UL54AbH4teHe/dVW9ypxwhORdNyuGK8V0P4OMWMvqw1X+6GKAFfZA== X-Received: by 2002:a17:90b:4c8a:b0:1e3:60f:58c3 with SMTP id my10-20020a17090b4c8a00b001e3060f58c3mr928143pjb.230.1654884616513; Fri, 10 Jun 2022 11:10:16 -0700 (PDT) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id o13-20020a62f90d000000b0051cb8b91474sm4529328pfh.136.2022.06.10.11.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 11:10:16 -0700 (PDT) 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 v16 0/2] add TCP and HTTP for downloading images Date: Sat, 11 Jun 2022 02:10:11 +0800 Message-Id: <20220610181013.2913075-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.5 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. Ying-Chun Liu (PaulLiu) (2): net: Add TCP protocol net: Add wget application cmd/Kconfig | 7 + cmd/net.c | 13 + include/net.h | 38 ++- include/net/tcp.h | 312 ++++++++++++++++++++ include/net/wget.h | 22 ++ net/Kconfig | 16 + net/Makefile | 2 + net/net.c | 36 +++ net/tcp.c | 720 +++++++++++++++++++++++++++++++++++++++++++++ net/wget.c | 426 +++++++++++++++++++++++++++ 10 files changed, 1582 insertions(+), 10 deletions(-) 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 -- 2.35.1