Message ID | 20220316060213.68082-1-grandpaul@gmail.com |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp2795mag; Tue, 15 Mar 2022 23:02:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm1yC0JQU/I3oYOPjYjjigT6ZoseE9Ej9zb/DsTtuUGsPzpA5HZAR/1+uhypRIkVS4d1vc X-Received: by 2002:a17:906:5006:b0:6ce:3762:c72e with SMTP id s6-20020a170906500600b006ce3762c72emr26072234ejj.30.1647410549708; Tue, 15 Mar 2022 23:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647410549; cv=none; d=google.com; s=arc-20160816; b=XQhRhVC2v6JMB9/kexwy1M0pSK7aDoM/FIRxtZuc5OU24cLeRMUV07UYHMUbOLN3sT v3/txn/mo8KKwWP9xEWvhUxtEfIbXP1A3+kYFiLEiKUTOgQy08pC9QHuWebERFsuIQ3G qIo55TaCgFz5wB+WwkFo2V0wIhfU0aX7uxKDqZtv7rv7U2PvsnoyJUaeJaavgCfC2DbR chH9DhJM9GCkfIz6iCt3PlCmGmQBxTyoUkdbZOpLdBLC7K7f2+OQqpuqK32PHuJQsB0L tnOt3qTGJo6Hymm9/r//7W2K/DiG7RV0spuG0bI6Of2LxsA9Sokk7SWWZSMR7bEn8kXP 435A== 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=yxMTn/pWodDBkGCWlOeJvpYy3mLd0DjQTilQeMQt7no=; b=eCFW+2oK6Llph1e2cZOm1zMIaH9CQ2AyMTE0cYgh80SbsBUg1II8RYkhkDeCUneOcn JQWNs2GJexkMm5rFzuHyHG/NPQZOp4VU0nlBCRtOMaaG+As3pNbz/5cx7oZ7hej0z0Bv f2mf+ZbQT4fR8uJWrv7ufDfdi9MXVb5VRhOBkKxWztJE7Kk0HuogRJFlZr/l+9TeNo4/ bzzvXZRc60l0C5iEZVDqc7Bo20/RvVV2G9eN6/P5a1B0cIgYrz8aWs1qSr/lSzIhFUgt ihmvHl4j7/T7gv3j/ml9SXWysDusUCW8Pd0ft9cICRxPrONPN6Y5vpPaw2jLCHQlFoAD Y5Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Kxi93zOx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id j4-20020a1709062a0400b00698f7a0f5c8si636069eje.281.2022.03.15.23.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 23:02:29 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Kxi93zOx; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7BD1D82FCA; Wed, 16 Mar 2022 07:02:25 +0100 (CET) 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="Kxi93zOx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2BD898002A; Wed, 16 Mar 2022 07:02:23 +0100 (CET) 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,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) (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 450DA80F68 for <u-boot@lists.denx.de>; Wed, 16 Mar 2022 07:02:20 +0100 (CET) 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-pf1-x430.google.com with SMTP id g19so2525612pfc.9 for <u-boot@lists.denx.de>; Tue, 15 Mar 2022 23:02:20 -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=yxMTn/pWodDBkGCWlOeJvpYy3mLd0DjQTilQeMQt7no=; b=Kxi93zOxvwC37HjTgExyzPkOg4r0KdrRXF+ymZe1LlYSTyMd+MC2geHhsHjoWuiH4v 5xbvZFPx1+tx/ITIVCL7yxgW8Zbzi88UZu0jrrsl7x/u9N1Sz7LcafB8xC90nTl+A8dE ebJluYVFCTLC9VZcQ2D19gwIbHidtEZt3VvZtFZtJi2rIrBjKXNpD6rQAP0ab9f1mal7 FQOd9aQJtC4/iNahoYa5HDrcd4zOQn6MnxHONxdPr6LmwLx9NATP0698Ut3z9zVcV5yj aVoU68oKJRwKiDzgrTh2t/JCJSXZuvTR67esfuxh/WtQMVSG4Bu9UZHAAZGBkREq2SZH q8Vg== 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=yxMTn/pWodDBkGCWlOeJvpYy3mLd0DjQTilQeMQt7no=; b=6wE64qp9LN4lt8fX2VuPgSvRQPEULr+LUq/c/x4+J/wmzymrLuHvf0hkutMpAXNL0t wDot7G0tCLiSyt1Ia1Z8nxKGgTnthWMOvEaMuS9Wx4NQygaULLlA6328LsF0s5X0MJWk KEk7y5LYCz2RSs/in8QDMCN83tThm3Gv9crnQWdJ04etGokM0LoJbB93LZTZ93eU/xCh /8OrwB837x3hWo02Gt6d5S0C2qUJcBsuzHnXTxQUlHJAEqmjxSq3nVVa1jPuWARMvr6u ne9UTpD8o6XROWxOpW0veAY4QsuJ9kWECcKRhMNC68kRFa2ebyqc4Zr95FlzL7p3FHmW 6ayA== X-Gm-Message-State: AOAM533hZFOPOGC2NtamfDw5sbh1vqJ9S1QasGE5xnDuRUswMYYTsmip a1D7GaG/g++RyVECx7RXsVKCVleWZNk= X-Received: by 2002:a05:6a00:1145:b0:4f6:3ebc:a79b with SMTP id b5-20020a056a00114500b004f63ebca79bmr32009461pfm.41.1647410538255; Tue, 15 Mar 2022 23:02:18 -0700 (PDT) Received: from localhost (host-111-184-129-17.dynamic.kbtelecom.net. [111.184.129.17]) by smtp.gmail.com with ESMTPSA id e10-20020a056a00162a00b004f6fc39c081sm1108923pfc.211.2022.03.15.23.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 23:02:17 -0700 (PDT) From: Ying-Chun Liu <grandpaul@gmail.com> To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" <paul.liu@linaro.org> Subject: [PATCH v13 0/2] add TCP and HTTP for downloading images Date: Wed, 16 Mar 2022 14:02:11 +0800 Message-Id: <20220316060213.68082-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 <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. v13: Fix some issues which is reviewed by Christian Ying-Chun Liu (PaulLiu) (2): net: Add TCP protocol net: Add wget application cmd/Kconfig | 7 + cmd/net.c | 13 + include/net.h | 13 +- include/net/tcp.h | 222 ++++++++++++++ include/net/wget.h | 19 ++ net/Kconfig | 6 + net/Makefile | 2 + net/net.c | 36 +++ net/tcp.c | 698 +++++++++++++++++++++++++++++++++++++++++++++ net/wget.c | 436 ++++++++++++++++++++++++++++ 10 files changed, 1450 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