Message ID | 20220708180156.873565-1-paulliu@debian.org |
---|---|
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=s1ov9vN9; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Lfh2574czz9ryY for <incoming@patchwork.ozlabs.org>; Sat, 9 Jul 2022 04:02:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 31F9684596; Fri, 8 Jul 2022 20:02:13 +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="s1ov9vN9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CF88684599; Fri, 8 Jul 2022 20:02:11 +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-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 7117884595 for <u-boot@lists.denx.de>; Fri, 8 Jul 2022 20:02:09 +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-pj1-x1031.google.com with SMTP id fz10so12545370pjb.2 for <u-boot@lists.denx.de>; Fri, 08 Jul 2022 11:02:09 -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=SgPz23pVicXgG+hbtyWitJ0v+0UgdWYXTLbH9Jr//cc=; b=s1ov9vN90Apl0yT3DRzl2RCquCfq8ZSWP/HRUsE90jVPBm0y4vzw6B8WtKSx4dBq3s Iud3Bu7Bi4sNEAY4JCgaf89UOkXBedZ4vfI6ugH2/Au2VF2+sDNIK1ZPSb30Gvb+iiHI njT2yeUE01Q1uaqSX+VWhBhtZIuagMJCr9G0J6wTfNfCmbIT0k9JTJWjhtUcdSU3ii4M xRNZ3nIa9LrVzAUSXXOjaHg9B2BREJ7bQLZ03IVwN2niV9QPqxdNvLQl5KClke3MDwsp J5R+t/9m/U1Di5vJGBDZ5vteA1wRltcP5/GhzkT18RkJolyfZ1x7U089Mr0kvagdiDZ1 tj/g== 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=SgPz23pVicXgG+hbtyWitJ0v+0UgdWYXTLbH9Jr//cc=; b=yYpYp5jkafyyzj/QLfrl41kktQ81PWMXousMWIJErblsjqVeCYnBAiGk6Vin1/YY1m Xw+Nc7Zy6wNW9YHAUi0xIYvMLEUAVApbdkv4s6zDdJ4vnngZb3O5IMypl8YBQAWdrbCi e1UniIIho7Hcj/hE9sCoMgCQ54ZSzt6sX0pySwX2BEEHViYLZs0a/5bDicmgXzcyNlsf +22jQXWudHWD+HKNCS8jJa8wYGjiIx9UmagkuAcRop0mh00+alcQXrpASAJpdn8he86z 4iGRHaV5zsHuhsJCbgxpzIfYqLnbSjUOKE1L2FU6ih2iIjTIboET5Ec4kNkLF+Y1Zn9f 3i7w== X-Gm-Message-State: AJIora8aOnCunluY1Qp5rPRsLaB9DnVj8WnVMe9/HG7frM/e5AMQ7tL1 E+uTIcwpiD1OU85nonT9dhju0vCddlJyeA== X-Google-Smtp-Source: AGRyM1tfeH9IZkj3cJl5lRtZhiPczoM5j98lv2RBU0ME4cwb3aniPT0s9QD4oPdE8UlxHxwI0HGFhA== X-Received: by 2002:a17:90b:1805:b0:1ed:1391:c8b7 with SMTP id lw5-20020a17090b180500b001ed1391c8b7mr1170362pjb.193.1657303327399; Fri, 08 Jul 2022 11:02:07 -0700 (PDT) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id n10-20020a17090a394a00b001ef863193f4sm1942362pjf.33.2022.07.08.11.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 11:02:06 -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 v17 0/2] add TCP and HTTP for downloading images Date: Sat, 9 Jul 2022 02:01:54 +0800 Message-Id: <20220708180156.873565-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.6 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 at 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. v16: Add more kernel-doc. Fix more double spaces. v17: Fix wget with address timeout issue reported by Ramon. 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 | 428 +++++++++++++++++++++++++++ 10 files changed, 1584 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