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 7652EC433EF for ; Fri, 10 Jun 2022 17:10:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2024984403; Fri, 10 Jun 2022 19:10:21 +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="dIcfnUzR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4D0FA84401; Fri, 10 Jun 2022 19:10:19 +0200 (CEST) Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) (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 633F183E80 for ; Fri, 10 Jun 2022 19:10:16 +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-pf1-x434.google.com with SMTP id c196so24384170pfb.1 for ; Fri, 10 Jun 2022 10:10:16 -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=rj6PiLmctJtq+puasEkoeWbzZgWnyLRNgPdmNKP+sjU=; b=dIcfnUzRX0ADwc8ImzKXEouCygOYHGSgn7Mcyjj+T5a6cHezoL11+EnbkAGBocWBOZ rE7dO7zmQElmt67K7fOHO2HmoEVM3ftUZnH/X6ik8quUH8j3yIkIuShFTAMCzyR7qoWT ZQxU1ihTD81bGTPp2uO8zTV87a+QL7Gxl8o3pLmeRvU5+LiBdN6v8CDl2B0kvVRTYj2k PXoHAcitEFSxKL7KgDvWNxiwYr/+iC4lnr/v+irYNxUPeIYq2D2Z/CMYse/0XTiVBWDF 6iyDUqjqtbiSM8fMfD3j+hgikRly+c82nJ2gfefdjwHndNQEcfuh0lkSgfDLODTbHRZy N50w== 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=rj6PiLmctJtq+puasEkoeWbzZgWnyLRNgPdmNKP+sjU=; b=rE0C3PkqnI1JhhNjcOimSYwXR6yv8vofzrUUIOISGo9JOWOsIBrTv8fl3B5YwghUkm Im5DCCVFDh/aAD2k9KHrEgaWVry0q+eNUQ2xDiN3R95o/oDTDlgk0GexaCSKEMZhNNBP uQu4+WEChp8O+T+WzT0I/qDQzCuEkocm0UlDAzZC/pEmtHMT/49lBGfkhYjN4yAHclFY rHE48IlT4BOrkNvFSO2OIKyaa7ZfpovHQSLh547HqLccyD/1Sl9RK6R7v/9TM3gFY2Gz IulIxr5xTN7Kj0zn2qS7IAX9oqdVeL6Glr5VjcenuabENigxKNVYWjv7eMYjjH2l3K9u K9eg== X-Gm-Message-State: AOAM532/9OOLcTwTev4bhWOk5mHjJKD41YRL7ziu28vTRvdGg5sKGVYS msgJp/BecNyUJE53hn55+TfMTKtZ+5KwERdf X-Google-Smtp-Source: ABdhPJxTpwriVh1ie3ZLMnS3u963AFp+ZASsNdgIUiZUyM/Ka9e0N8eVrR0xYnXcVPOLU4ZLYtkaZg== X-Received: by 2002:a63:594c:0:b0:3fd:9b8b:863d with SMTP id j12-20020a63594c000000b003fd9b8b863dmr26903095pgm.250.1654881014359; Fri, 10 Jun 2022 10:10:14 -0700 (PDT) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id w4-20020a17090aaf8400b001e87bd6f6c2sm1965717pjq.50.2022.06.10.10.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 10:10:13 -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 v15 0/2] add TCP and HTTP for downloading images Date: Sat, 11 Jun 2022 01:10:07 +0800 Message-Id: <20220610171009.2662052-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. 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 | 712 +++++++++++++++++++++++++++++++++++++++++++++ net/wget.c | 426 +++++++++++++++++++++++++++ 10 files changed, 1574 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