Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2092515/?format=api
{ "id": 2092515, "url": "http://patchwork.ozlabs.org/api/patches/2092515/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250530153826.1057407-5-tharvey@gateworks.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20250530153826.1057407-5-tharvey@gateworks.com>", "list_archive_url": null, "date": "2025-05-30T15:38:26", "name": "[v2,5/5] net: lwip: wget: initialize dns if a hostname is used in a URL", "commit_ref": "d373436f50bb5f8ec3c3301532b92d2408bdc429", "pull_url": null, "state": "accepted", "archived": false, "hash": "6a292eb5402ef8555d31ea9df0c75973ab0191ff", "submitter": { "id": 41730, "url": "http://patchwork.ozlabs.org/api/people/41730/?format=api", "name": "Tim Harvey", "email": "tharvey@gateworks.com" }, "delegate": { "id": 157425, "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api", "username": "jforissier", "first_name": "Jerome", "last_name": "Forissier", "email": "jerome.forissier@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250530153826.1057407-5-tharvey@gateworks.com/mbox/", "series": [ { "id": 459049, "url": "http://patchwork.ozlabs.org/api/series/459049/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=459049", "date": "2025-05-30T15:38:23", "name": "[v2,1/5] net: lwip: call sys_check_timeouts and schedule on rx", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/459049/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2092515/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2092515/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=gateworks.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n dmarc=fail (p=none dis=none) header.from=gateworks.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=tharvey@gateworks.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4b86pz2Hmhz1yFb\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 31 May 2025 01:39:07 +1000 (AEST)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 19819833AD;\n\tFri, 30 May 2025 17:38:41 +0200 (CEST)", "by phobos.denx.de (Postfix, from userid 109)\n id 98BA38331C; Fri, 30 May 2025 17:38:35 +0200 (CEST)", "from finn.localdomain (finn.gateworks.com [108.161.129.64])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 99D3C801BE\n for <u-boot@lists.denx.de>; Fri, 30 May 2025 17:38:33 +0200 (CEST)", "from syn-068-189-091-139.biz.spectrum.com ([68.189.91.139]\n helo=tharvey.pdc.gateworks.com)\n by finn.localdomain with esmtp (Exim 4.95)\n (envelope-from <tharvey@gateworks.com>) id 1uL1oV-007QGb-Ik;\n Fri, 30 May 2025 15:38:31 +0000" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-1.9 required=5.0 tests=BAYES_00,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,\n RCVD_IN_VALIDITY_RPBL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "From": "Tim Harvey <tharvey@gateworks.com>", "To": "u-boot@lists.denx.de", "Cc": "Jerome Forissier <jerome.forissier@linaro.org>,\n Heinrich Schuchardt <heinrich.schuchardt@canonical.com>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Joe Hershberger <joe.hershberger@ni.com>,\n Ramon Fried <rfried.dev@gmail.com>, Simon Glass <sjg@chromium.org>,\n Tom Rini <trini@konsulko.com>, Tim Harvey <tharvey@gateworks.com>", "Subject": "[PATCH v2 5/5] net: lwip: wget: initialize dns if a hostname is used\n in a URL", "Date": "Fri, 30 May 2025 08:38:26 -0700", "Message-Id": "<20250530153826.1057407-5-tharvey@gateworks.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20250530153826.1057407-1-tharvey@gateworks.com>", "References": "<20250530153826.1057407-1-tharvey@gateworks.com>", "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>,\n <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>,\n <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.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Initialize dns servers if a hostname (vs ipaddr) is used in a URL.\nOtherwise the wget will fail without displaying an error due to\ndns_gethostbyname failing silently when no DNS servers are set unless\nyou have previously performed a 'dns <arg>' command.\n\nSigned-off-by: Tim Harvey <tharvey@gateworks.com>\nAcked-by: Jerome Forissier <jerome.forissier@linaro.org>\n---\nv2:\n - added tags\n---\n net/lwip/wget.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/net/lwip/wget.c b/net/lwip/wget.c\nindex fcaf684e61da..2ca369db65a1 100644\n--- a/net/lwip/wget.c\n+++ b/net/lwip/wget.c\n@@ -460,6 +460,10 @@ int wget_do_request(ulong dst_addr, char *uri)\n \tif (!netif)\n \t\treturn -1;\n \n+\t/* if URL with hostname init dns */\n+\tif (!ipaddr_aton(ctx.server_name, NULL) && net_lwip_dns_init())\n+\t\treturn CMD_RET_FAILURE;\n+\n \tmemset(&conn, 0, sizeof(conn));\n #if CONFIG_IS_ENABLED(WGET_HTTPS)\n \tif (is_https) {\n", "prefixes": [ "v2", "5/5" ] }