Message ID | 20220610171009.2662052-1-paulliu@debian.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp1933121max; Fri, 10 Jun 2022 10:10:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHnxgHg1/H7Wu4wAqSk6VEIqIHwqJ08bl3uVfwV57NYE4zZmD/Jlney7w6RtBi9E5ratFr X-Received: by 2002:a92:280a:0:b0:2d7:7cdc:8426 with SMTP id l10-20020a92280a000000b002d77cdc8426mr2649097ilf.245.1654881026960; Fri, 10 Jun 2022 10:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654881026; cv=none; d=google.com; s=arc-20160816; b=HG15S+jyBBW85TiFauvQdJitrQKwwDg5WbovTNWDDYT1+9xM5fIOq/OYR6XcYiPkJ+ o/eWg6HEEd2XT4FTNRC7RkogicPA+IuZYnvARgO+v3Cra8IrhogayvUOTOvVQsSNglU5 st9ctbBczq6KEkbcUkC0G/kiWrgfqWmtWjPuBBgdAX9HNimp4ky3e9ccbkboy9anWdtu moosd8ID6v1Zmomd4CT5Kb5uXSig8clnEwwBp45lOo1MmgHaedGNUEoCl+Yoex3SnjTK 97r7ihAq51fX0EDZuEeoqNvkIp45C25YdJQ9BDAooSXn93Dt3+3kEIdTQaKxgHGWhY3r OZnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=rj6PiLmctJtq+puasEkoeWbzZgWnyLRNgPdmNKP+sjU=; b=PGqmnbrC2yx1IlUfDeuptAPh4DhtsPs2kxmFNRdkDgAW0pmmFQvigfpb2ZuIxj6k+7 AExMhufKsLAZufAcmHUGUlWY8O1hParqnJbTiY0JZvNKVsWE3OH7ppnPWqFRo7991LBG oZigyLtHIW2Qna2KpzJFo3vPlAUSg5elE4KqbgLVN/bWOqpV1AR3o5WWq9G1U/9zdWDu A0EmcyCljZrUnmIM5RjD8JRBXxJzoLiOTkhMmhUvwMYDtSA04UdMoFvkYz/MWOb4iMw9 dKpLoUna8AYS69AwK3ggmmaXukFPkyZJs+aamxKkYuZBuJPXJWlcYTef27uLrTaB1Jl0 DBiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIcfnUzR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id l20-20020a0566380d9400b003317bdbb254si31490591jaj.68.2022.06.10.10.10.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 10:10:26 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dIcfnUzR; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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 <u-boot@lists.denx.de>; 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 <u-boot@lists.denx.de>; 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-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)" <paul.liu@linaro.org> X-Google-Original-From: "Ying-Chun Liu (PaulLiu)" <paulliu@debian.org> To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
add TCP and HTTP for downloading images
|
expand
|
From: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org> This patch is a refresh from previous patches made by Duncan Hare <DuncanCHare@yahoo.com>. 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