Message ID | 20231017140657.95860-5-stefano.babic@swupdate.org |
---|---|
State | Accepted |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBAABBBVKXKUQMGQE4R2PGJI@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=ef+r8TSZ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::d40; helo=mail-io1-xd40.google.com; envelope-from=swupdate+bncbaabbbvkxkuqmgqe4r2pgji@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-io1-xd40.google.com (mail-io1-xd40.google.com [IPv6:2607:f8b0:4864:20::d40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S8wlZ4gQyz26jS for <incoming@patchwork.ozlabs.org>; Wed, 18 Oct 2023 01:07:06 +1100 (AEDT) Received: by mail-io1-xd40.google.com with SMTP id ca18e2360f4ac-7a26314e1d0sf468881739f.3 for <incoming@patchwork.ozlabs.org>; Tue, 17 Oct 2023 07:07:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697551623; cv=pass; d=google.com; s=arc-20160816; b=J7Gew9cvlGJ1arCi0G1Q2IZ7Nmk33Toq0l5d3XuFjmIT+0XPzP/uynHRFs1yFEksSF jiLcAHPB5tIP5jBqoYvqn9cjbrqGEdP/TKysRJCCTRYR/5tEF6ErRAQK+mCnfU0Qkcpz Q+q+LbuYLsVRWvYpOgureZU3F7oEy1d97xGZA4LGqPZnOOvAmBMwwkf/wDN0Ht87M8ou Ar/nJZOmPheCzo86/Kh/L2BnAyrFJ1imgHUkEujoA0wOF814AH+E/Cdq0N0XyDaVS0xl R0HJGpbWch7nQC5LpXPy/6fOMHtbjp8LUn7HgvM8QucWAYazux/I1YjbO4F+NhAGlsbu 9W4g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:ui-outboundreport:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=+vJhgc9WciZBe6quLkbgSitTKOobBYkJtTK5o/xvJ+s=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=aLDe5Ul/zSCjJMkUB0VsxBPPzpaZwwhL62X15Fnx7KlpG/SEIHlerFokoF86MsUxwT yQALnhlK2UYYjoetfWMmBV51COxQiQdT1EwIy0eall3GBB71j4DR4jkGvoW6TmGffulP AMEaQ3rm/nyQTggYXcwRNdI+tMhh7tP4jVRtRiHKax33nKnA9/drsl14JnMgZ1aNZ33A PL/Z/PV8+yI31J62voUjPHb+PyJgxMrW87Sj/78HViYMsoNbqle53/XxRzcQcgG4Rrzf eZpNd8Wawt2Hin1eA6z6VuCYVu0fID37wBM9QNJEESHp30TaJJSSVTxpesiD1X3pNvhc 5qYQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1697551623; x=1698156423; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:ui-outboundreport:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:sender:from:to:cc :subject:date:message-id:reply-to; bh=+vJhgc9WciZBe6quLkbgSitTKOobBYkJtTK5o/xvJ+s=; b=ef+r8TSZ7jXp2ctVA23MYlemkppZp5Go7R4sx1DiCLjwhb0Vszw6lzuIPXiftQ1zmz 7sFyTU8WswGhjhoEhc15CrBJQxsvJbCKUE0/qNiaxHNrkUOGHDBF0J5VO+lMG6JuYCDZ kERZOVLQrckoTRpF662Azi140aYDbD66y+jwvBC+/WPxKvpeTCYVv6af+Uaq9IslOYbF 45gR6WYRW9i/P//u5rwZnQRaD+ZLgd6PZHF4dVHlCMasaeeaYLtSvKcvIPc3Obc9BUrJ DNAcTs18MBsFvP9bdqG3ohQtQlaXJemqf0x6iYATlT7V73xmUyE8VFh+ZypVEh1YVN9W X/2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697551623; x=1698156423; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender :ui-outboundreport:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:x-beenthere:x-gm-message-state:sender:from :to:cc:subject:date:message-id:reply-to; bh=+vJhgc9WciZBe6quLkbgSitTKOobBYkJtTK5o/xvJ+s=; b=STruOXkOJFlOGJisIg0RZrrRf9km4PYtrMCU2jksFaASLCd2GatmdhcMsoHLVefJ26 pYN2Ra7450WeLen+xf3jUhtwTXpDr19nLZOu/ourVA1itg05l40TqSaD3xmfsKHvY5C9 Zu7rXQ5geJ7JHBW20z04xzdXvOS7x1PEW/SvGRrdpnu+Pfj2wRYS0zh+Xcofy3S3Je9g JELdXxE4AC62VqZHw4v7abQj0hmBSjzM+gSEy0iDQGCycQJ/6WTfLYBC4xrKFh8rDX3o f0qAcyFw3Y2aePa270PEGXCqEKZr4G3DiY33Tmidi0GWjeAcKaQbt0EyFjjiCuUnITwI CnMA== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YwOqJ4Oosxz8x4M8CxZk5XhJ79S3T9Lzdrmzq+82WYH8N4acoKg QFU5kMVgn2WtE4FQ0ypuJJg= X-Google-Smtp-Source: AGHT+IF5oogN5WDL9H0Jf9W/yoVxIi6ideINnzedksynUyB3xdiG1a56IMHiKJRTR+ImqwsAhBd+sg== X-Received: by 2002:a05:6e02:1b82:b0:34f:70ec:d4cf with SMTP id h2-20020a056e021b8200b0034f70ecd4cfmr3283927ili.8.1697551623314; Tue, 17 Oct 2023 07:07:03 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a92:7b13:0:b0:352:55ed:84bd with SMTP id w19-20020a927b13000000b0035255ed84bdls1476531ilc.0.-pod-prod-09-us; Tue, 17 Oct 2023 07:07:02 -0700 (PDT) X-Received: by 2002:a05:6602:1648:b0:792:43b4:dc2 with SMTP id y8-20020a056602164800b0079243b40dc2mr2626784iow.3.1697551622037; Tue, 17 Oct 2023 07:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697551622; cv=none; d=google.com; s=arc-20160816; b=v7dgiQxKvvniqSYf5z6QbEmkGG8GLWtwhMtSh0OImBrVWNLFVLuBoUbIMFinqCbpUw pNM2sVPVeWVgTGqbtFJc6xT5OlZjB+WjOzKR8u+PMxqB8/nDQ5CI5Pm4trHc8qszMzfG 37AlND7QwwfmFAcVwn/tPZMpEQy4YqzdpRkJKBEr0VmQeDTHgjTgctgEQu8GbHI8Murq KCD9ATIy9QPfKtGqoeRAQ6r+3si70Ro4KoGItcWbupGfcLrUxnEZSkJCwmDgWvmx9HG3 9E/n3bQah7/wp5YiaZF9kBpmzhxXD3Eyx2XRBtg9rA7FUvV+mRrQQ+8mxrzjlo9sVHqh /udQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=WPMY4uaJ7InuZTkveOyFH/GcOIhK1pAhTL4SjEia6oY=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=n3f2+zH93KSQPFZvZTTABNpIBbgj5cE95elULrcgydREDekq2Wiv0VYNuMjEl58vzs zS2QrK4t7IIURde7vleVB9ynf9HqYShQReDIGTmkI/qk26S3JxZHyVQT/MpKN2GC1sUI fROGhcoFu8+87NWL0idqqR8vupV4zuZ72h8Tt4aUefum79+q/xW5dGKlrJchE7iBGuO+ tIfvkjXsVNaHDAbFbqMOpWJTmTR0xr5HySVPBqQE0WNLSw5Vbccs/7cpOFJC4PKLhbXZ 0WLdV4L9j7bQr5UdpPjPFOsPHtqfYIXmwvZp4mHAS4ViOO5nBdvukC+Muo10SwiLfrpZ oa3Q== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.13]) by gmr-mx.google.com with ESMTPS id x6-20020a023406000000b00439ca012a0bsi124987jae.6.2023.10.17.07.07.01 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 07:07:01 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) client-ip=212.227.17.13; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue108 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MZl1l-1r4eyx1Njz-00WoRk; Tue, 17 Oct 2023 16:07:00 +0200 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH V2 04/11] hawkbit: add server name into the IPC request Date: Tue, 17 Oct 2023 16:06:50 +0200 Message-Id: <20231017140657.95860-5-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017140657.95860-1-stefano.babic@swupdate.org> References: <20231017140657.95860-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags-ID: V03:K1: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MSDW+o1yu49hjBQpR57D qm3nUpeIp2UxAZfNtBeT6D3C8qEsrwEoV9IV/5psqdTp/VaCthLClWO3RNkkNP7xxgjeyRP0e F5vk54tu1SbJ+Jw== X-Original-Sender: stefano.babic@swupdate.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.13 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
Handle Hawkbit action_id and on the fly updates
|
expand
|
diff --git a/suricatta/server_hawkbit.c b/suricatta/server_hawkbit.c index 349dc117..faff70da 100644 --- a/suricatta/server_hawkbit.c +++ b/suricatta/server_hawkbit.c @@ -35,6 +35,7 @@ #define INITIAL_STATUS_REPORT_WAIT_DELAY 10 #define JSON_OBJECT_FREED 1 +#define SERVER_NAME "hawkbit" static struct option long_options[] = { {"tenant", required_argument, NULL, 't'}, @@ -1147,6 +1148,7 @@ server_op_res_t server_process_update_artifact(int action_id, static const char* const update_info = STRINGIFY( { + "server": "%s", "update": "%s", "part": "%s", "version": "%s", @@ -1156,6 +1158,7 @@ server_op_res_t server_process_update_artifact(int action_id, ); if (ENOMEM_ASPRINTF == asprintf(&channel_data.info, update_info, + SERVER_NAME, update_action, part, version, @@ -2161,5 +2164,5 @@ server_t server_hawkbit_funcs = { __attribute__((constructor)) static void register_server_hawkbit(void) { - register_server("hawkbit", &server_hawkbit_funcs); + register_server(SERVER_NAME, &server_hawkbit_funcs); }
This is to completeness, it could be used in future to distinguish between suricatta's implementations. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- suricatta/server_hawkbit.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)