Message ID | 20220708180156.873565-1-paulliu@debian.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:bb16:0:0:0:0 with SMTP id jd22csp885651mab; Fri, 8 Jul 2022 11:02:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sI6yXM+zu3pR7/6XKJIOoa/EnYAwnjwcV9kyslmvmv2WJ7O2ulWzimiOlp4EYwCxHErfBI X-Received: by 2002:a05:6512:16a3:b0:485:6df4:2cb1 with SMTP id bu35-20020a05651216a300b004856df42cb1mr3074386lfb.208.1657303335429; Fri, 08 Jul 2022 11:02:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657303335; cv=none; d=google.com; s=arc-20160816; b=m7F+z5mZvhoc3PKaq2U8AbX79heXRr09A1qiEJOs3AKLNR+WJX3JkEap3lcb3d7GjO Y0lEvd2w5Vba43mHtFko2sTE1ATdxyhM0gqq05ditjjKOx8Jf8gxugmv23nUHB8a0t1Y tyHfM5cepT/qXTe/KeGPkqhOBixWpqzLEodzzzRlDcWC/ZeIV+ZwLr4W8HU332gNTT5l TfgD3nZLWZaX01fvU8dl4K1B1X6U7F57ixwg6LwSOf/szxgQvpDjYrXX39GNKW9//QVM ZkwCmzulfTwZQSnaYxwhI6yrzfUfjcML+p04fmXO3R+HRhwkcavJJKx20edRKWEWvLNp JSMA== 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=SgPz23pVicXgG+hbtyWitJ0v+0UgdWYXTLbH9Jr//cc=; b=USPnQCtQNMgR5mWdcxSLhumlZPVV+LXu+tbkZrWr+rNbPayXa4zLdAqx+AJhpjRcSj OLDdInW+JTc0tHUV4JK+N/vR+Dk1g4j6JBWjY+4XWo1hKnBoABhLOE6UrMQ5oq0HtAWk KPPkynSwypx86UxPI/2rDzzSdZKn3w69+W0qB8EnbgZnl7hXR6ty7aTX9qt6wChItxSQ vlo17xUXNVn2/mkQC8A7h1xekL50sYoB07ryQS8th0wnBZzM9HnI8p+PR2bZJKpKJQww qC2qr0WrFNXZF04wlRiMqWhrD+jHWKN44UZRR8xc4gvbdWtI5yp5OUp4VzzdpS/sXisX z1aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=s1ov9vN9; 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 o22-20020a056512231600b0047d7583c0b3si11716963lfu.562.2022.07.08.11.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jul 2022 11:02:15 -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=s1ov9vN9; 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 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-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