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 CBF6CC433F5 for ; Thu, 21 Apr 2022 16:54:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D142F83EAF; Thu, 21 Apr 2022 18:54:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com 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=gmail.com header.i=@gmail.com header.b="fR2ahqeb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BBFB783EAF; Thu, 21 Apr 2022 18:54:33 +0200 (CEST) Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (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 B3B108394D for ; Thu, 21 Apr 2022 18:54:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=grandpaul@gmail.com Received: by mail-pl1-x633.google.com with SMTP id n18so5431064plg.5 for ; Thu, 21 Apr 2022 09:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=nJQ1MR9Y6kRy92K/eG0Anw0oRtMNyw9MAHpiZCRz1N8=; b=fR2ahqebESstV5PZPsted1J5IrXl+wh9ngFTUddaH5J5B221KaRdJ/BeEY24zNn52L kw7d5ItfyfQpis6qZePGX6meBUz2EkcwFXewVI6jkeQMPQS0SfyR7RcTLIPlhJepnAO4 858Kj8xdGwZMUK5wEt+laI5LdguPmawZ0jQ3Qbe4hTHG0xyrUhgYxAHZ4hwvm8oY0a21 AyOj3QW3HkkisvWauysbuO36N4PWIsW7QFCHlrRFsHdQesHO4qneb4pumHgHKWS26nKe dz0FZDrlBN+WmZM8/AFRGMNwJfih1ROdi6BE7TKr5hVpk9djl881Ou3X1WqDMtfl1r1Z T/8Q== 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=nJQ1MR9Y6kRy92K/eG0Anw0oRtMNyw9MAHpiZCRz1N8=; b=RsFY8+XluSkbIlPNqPy9SVzo6aRoVTPtuI86G+uiXMpigXFQGS4Q0OzCOxBUoC1Qg4 5EtdQJRagj9Zjq+iRbjeOfqhnrRhsO81pKcY8+yoE/gMncsqzW7tv41NwurE3prAYYU5 jf5gEkYgZrN2MOpcnUtxW0bnzuhqOZMhPD8xtL/1WeT12dgIkhgKuaRE+iImO7SGKQiq yjTb7buXjbJOwG8uRWBQdCZZeAZJHb+cSgIeLzEdyD4ej8m5PzC8iq3tnFLfQI5IA93p oFrtfpTAxEULeIK+lCwKMV2h78uyhTI5NuBVDt6wiH4SBdDmHDq51Vri1Z2dF7GRDRDO YB4w== X-Gm-Message-State: AOAM5313aHLdfk+QCF+M1Yx6OnbNCkgKHmD4+h1rpcFYD+3nw4mPDtaA 5w8GsnGvEB77CJVC0+SUWAMw/0p17s0= X-Google-Smtp-Source: ABdhPJzPu0iVLytaTJfnV+GaEi6Pah8jO5k3+JwkC0D5UO5o6u4Zt4ymyP6REc5sPJ0TIIGRB0W0rA== X-Received: by 2002:a17:903:240c:b0:153:c452:f282 with SMTP id e12-20020a170903240c00b00153c452f282mr430532plo.88.1650560068695; Thu, 21 Apr 2022 09:54:28 -0700 (PDT) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id n3-20020a056a000d4300b0050ac8dbfd0csm6955464pfv.163.2022.04.21.09.54.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Apr 2022 09:54:28 -0700 (PDT) From: Ying-Chun Liu To: u-boot@lists.denx.de Cc: Grant.Likely@arm.com, "Ying-Chun Liu (PaulLiu)" Subject: [PATCH v14 0/2] add TCP and HTTP for downloading images Date: Fri, 22 Apr 2022 00:54:21 +0800 Message-Id: <20220421165424.168274-1-grandpaul@gmail.com> 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. v13: Fix some issues which is reviewed by Christian v14: Add options to enable/disable SACK. Ying-Chun Liu (PaulLiu) (2): net: Add TCP protocol net: Add wget application cmd/Kconfig | 7 + cmd/net.c | 13 + include/net.h | 10 +- include/net/tcp.h | 222 ++++++++++++++ include/net/wget.h | 19 ++ net/Kconfig | 12 + net/Makefile | 2 + net/net.c | 36 +++ net/tcp.c | 709 +++++++++++++++++++++++++++++++++++++++++++++ net/wget.c | 436 ++++++++++++++++++++++++++++ 10 files changed, 1464 insertions(+), 2 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