Message ID | 20220610181013.2913075-1-paulliu@debian.org |
---|---|
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp1977660max; Fri, 10 Jun 2022 11:10:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7gwOU2WDYBusO+OK7S+N9m/u2f4jmESw1Y9pZ+JsN9ZobnG4yavJAj2EFjtGofHvGXGKT X-Received: by 2002:a05:6e02:1b84:b0:2d3:5b9f:50d6 with SMTP id h4-20020a056e021b8400b002d35b9f50d6mr25349780ili.247.1654884630752; Fri, 10 Jun 2022 11:10:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654884630; cv=none; d=google.com; s=arc-20160816; b=y3s/9obd223eYvset2BK4L6e5CFY0S8WV/pbUBCA81nH6c2foFqVjqBvxWOZQTC6pJ sL/OMlQLu1LTAbkJ/Y7eYGaHG4n6lK5Jfj/qg7CyoY2N5WLmSqasWyEgisRvGkoziAXa 9qDUmBPvyaCC3KZzGmYh13G9iokle40fM46mnQy4a49WSfY2LYOzhklaQUibX+dMR+s/ shWYY1ZB0EZVw+L/uN1xjxf/MDAuzAyTbg13gzJ0M7Z0gCLNFtBi78yNpHL/ujtyEVR9 Dn+afYkUVjGaWVSVfnNE9Ey74ps0+k1V4g3AKW8wgs/Xl+zi2XTijsNW+eZWsRNX0dbJ kWdw== 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=XpVIur1VfMuq2bSI2JUu0f1xhjr+X31nBpPCH7zNd/Q=; b=WbLzQ/6llI45EVXiYtCa8yRLZqbYYC6RIUkoQ63Mu9d7rtrfn8+P5UOjLuTmeRMV4P LJx4lvlknSdvscBwN1ymKYTxTwkQz0GLq2N7OTFd4EG/BVsg85vg6Jq7TIjbBL65a432 +FPTQjX8KVn+j2m0ZoinXQoB1hZiUhGhkEUfgP2JuMZTvPNarGWwmT2KBDsK92iJJzgN d1IicQhKN4NueQg90iEb/rFtA6dpUTUfzPDYKXWSKccPWcHAi1JtD4XtifCSsJPLQrJ6 eKD4qer3LnqHZkdOUEKWJZVRzjd2wDaEE1EiTlkpVGXxvlgWQABsGgJgcdxGijVR0QQt LrHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N59ekLNf; 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=NONE dis=NONE) header.from=linaro.org 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 h5-20020a056602154500b006696928578fsi20022656iow.64.2022.06.10.11.10.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 11:10:30 -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=@linaro.org header.s=google header.b=N59ekLNf; 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=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1337384403; Fri, 10 Jun 2022 20:10:24 +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="N59ekLNf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E40CB84401; Fri, 10 Jun 2022 20:10:21 +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-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) (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 4E4698431E for <u-boot@lists.denx.de>; Fri, 10 Jun 2022 20:10:18 +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-pl1-x636.google.com with SMTP id r1so6147563plo.10 for <u-boot@lists.denx.de>; Fri, 10 Jun 2022 11:10:18 -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=XpVIur1VfMuq2bSI2JUu0f1xhjr+X31nBpPCH7zNd/Q=; b=N59ekLNf05pSzFN35/SZ1nvBcP6WfC5qAUNnJVtAjxEf0zs+1HSdjvy9LosmE5RiEy yAwS+LvG7oTxT6/mdehxhgBgLHx1jTUqNTfyUoWJtD9QKN+b+6jw6/NNGGF9eyW4ZOtH SxbHPW8iI6Rk33CE7HecThuIbYykxunu7pv21Qo7Ju5qPpFcYdlva93eQxKWsxOkbpRm tFKYNM3zWfFU6nSCZH6e/8Vz8by/VCog8o4n/jvyKPgclcm0t6X2Bn3l0ENtjMvkiFhO KKd0k51eQnfZgVlsvUU60Un8nEvQ3WrkMBu3Oqj3XvjrLawaKndG90qT8zTEEIg6b4eB bN6w== 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=XpVIur1VfMuq2bSI2JUu0f1xhjr+X31nBpPCH7zNd/Q=; b=4Ap/REbtnQ60rlXToygP6RIk0mQRxhGKvBkPxsXFA3MXn2ZKt+IOSLHAtNge3N84cR enxQ/GUaxd91pPydS4CyobRARROf7Q1oSA/VPMV/QDj+tTLmioMxXyhl+cPj3SwSXIxi pju4zH8gmvuD5HFemeSZKQqYBWRjU0N17zFKBeB7syKuSwXCfDuXvWBviz1GSP5Z16CT ySmThofiTAUUIIp4acLdr6TyDB18AhdVuDzhvxfjtID4lbK2xpvcOXnmnqIZCo9E/o6v /uYUMy/nyNsmP1xcTcWPJOJowZerbZ/imdN1DKc7B0leMbzXIdKKrr/cOJj7NTpULaZA ud0A== X-Gm-Message-State: AOAM530qWzrVOuDrtV2pm9pV/apbVqEM1lxjr3gmU9e/AIjSuz6KLIGm rSOEJ/xPPQsaErmVMMwvhh7GXiEajlwpZRpL X-Received: by 2002:a17:90b:4c8a:b0:1e3:60f:58c3 with SMTP id my10-20020a17090b4c8a00b001e3060f58c3mr928143pjb.230.1654884616513; Fri, 10 Jun 2022 11:10:16 -0700 (PDT) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id o13-20020a62f90d000000b0051cb8b91474sm4529328pfh.136.2022.06.10.11.10.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 11:10:16 -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 v16 0/2] add TCP and HTTP for downloading images Date: Sat, 11 Jun 2022 02:10:11 +0800 Message-Id: <20220610181013.2913075-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. v16: Add more kernel-doc. Fix more double spaces. 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 | 426 +++++++++++++++++++++++++++ 10 files changed, 1582 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