Message ID | 20231016165740.1374614-7-stefano.babic@swupdate.org |
---|---|
State | Changes Requested |
Delegated to: | Stefano Babic |
Headers | show
Return-Path: <swupdate+bncBAABBCWXWWUQMGQEGFGQ6DA@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=cjBW5eFB; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::33b; helo=mail-wm1-x33b.google.com; envelope-from=swupdate+bncbaabbcwxwwuqmgqegfgq6da@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-wm1-x33b.google.com (mail-wm1-x33b.google.com [IPv6:2a00:1450:4864:20::33b]) (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 4S8Nb454p5z26jW for <incoming@patchwork.ozlabs.org>; Tue, 17 Oct 2023 03:57:52 +1100 (AEDT) Received: by mail-wm1-x33b.google.com with SMTP id 5b1f17b1804b1-4054743df06sf31162495e9.3 for <incoming@patchwork.ozlabs.org>; Mon, 16 Oct 2023 09:57:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697475466; cv=pass; d=google.com; s=arc-20160816; b=yL7LdRCnNnOLEP3m4WKRdrtzge+gbSxtXY7+O+Wjl6JKL3DGFEqs20EcBRE71iCZyc cIpXNKJAVh82hmboN8vTsK8o6xiCj3AGIkTrrIcogQXHxij2nwSbrNz4cRi4lBlSk8p7 ciYYSjaPQaBHOzivRhF5v09tK5dbq7xubulbHksTEezcw72KL0vRC7FzBpR3tfG7iRv+ cbndRZtrQrMoSGH7CLMcWhVQsDQje3kBwm863AR6PlcDkNwgbhS7YJyTkd5Hky/YrRqP A5QQKw0NDX4myONpB+8ZRljHRjK0XQN6BBPLsRTV26AD5AWd67G2BTdvoXIkL1KhHPgy m4+g== 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=W7NZYbyBb+V05h8o1sLKTo0JmEQoRYHpiDYoYU5X7A4=; fh=TiEWcqMcKpHk5s7uErzpntoONrNfOXwKpI5P8bIlggk=; b=e1dOn5eh1hQNabwD1SmUMiEsui3JURjRqSyhTLzdOohxIGCJqsNdphKk/sR56KfM5/ HVsGTfWWxgc9plZrNpamxSERd1sOARdaf7XpS6RfnQi20MHf8HSOO1o6z5opEJYxToIP jYgEN9zo9YMzwQ3suoBq3ACl/H2pTsBO74USJPkTun0ak6HUb/wLNx6LhYu3JkyUAzHr NSiW05Ay0ZWtu5I3QwmmlknoBz698Z/iSSGCNybLINa6eJZHwTMFAEn0hbZuzYh3PopX n3kAxlCxKMk4/dzcM9T9xNMjz+TFoZiVvhUQ5xLfQOnJ5J96IgAGXpzMyYz0zs2GtssQ whLA== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 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=1697475466; x=1698080266; 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=W7NZYbyBb+V05h8o1sLKTo0JmEQoRYHpiDYoYU5X7A4=; b=cjBW5eFBrilUOLb0V0DGI1682owDGwbASYR7bZm+OSCIzqzOrknSGPUMJTanJYAJH9 8+WoH6BEBh6QtFN1G0BSAowAuiWPf2xns80J/Kb+RybdIp67I/M95vhMQorS7/lOBA/X kWMbMz6oKSFO6Xg0rCqtkNQSvrys0LEl1JZ/H9K0w0wRhq/PouQ7yL9uDAi8IVjs25ys wIzYnrRjqn8rszR40L34PocnyO9T9/C4ycHdjMGVLdQXRjnouKzwgv3BbiNyTfbaG2t5 1nKBA/Uet7iDoh/QGNFSOeWkjZ/IZ1nAEf3SeXuGP/+gsbdgaKexnLf0ZLTGh/oviNa/ ld7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697475466; x=1698080266; 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=W7NZYbyBb+V05h8o1sLKTo0JmEQoRYHpiDYoYU5X7A4=; b=XbJ4F+QaUp50R65DUw6nTqJPLhahmh73dhCpH/L70IxI965kz44vRKzWk4bC+ZInbB 41XUx5XM0cxCaFYwRdQCJISTcEttwdJtWu0lMC3WdkY9JLjtkBm/tJuF++rnuXBbV+aA t2vayLrqrZXoWjvzLrSfdTvyI32PYMvj7ZIVJWpqiM6fO8Cb6E6Wf76NA3ELGVfT/wCa HU29svg1TQ1UR6bH2uei+0dDjvz8/mCHnmrbSaLeqfTdl1HJ3RXfnqgTBP4CglBZdJjS Efs6Kow8deKZk3YvPPi5eSW2zRTg5/vjCMX1sA9tm3fH3uColf0st57za0aucUq0sh9O 4avg== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOJu0YxrzIRwNYHxjgLmoMztopMHmxxZEaJoBCAp2Dl6ExEU3ba5ZfCS dyYC1QkZLJ2t8tq/FH/LlA0= X-Google-Smtp-Source: AGHT+IEwKV2/7LhpWZRCwZtgb+Q/XTs9iBZ6zxwhpB5AzRu9YOMVRMey9IhwgWiCp0GQDiwACzAYLg== X-Received: by 2002:adf:f245:0:b0:32d:87c8:b54e with SMTP id b5-20020adff245000000b0032d87c8b54emr17947wrp.1.1697475466531; Mon, 16 Oct 2023 09:57:46 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a5d:5985:0:b0:313:f4ee:a4cc with SMTP id n5-20020a5d5985000000b00313f4eea4ccls1158912wri.1.-pod-prod-01-eu; Mon, 16 Oct 2023 09:57:45 -0700 (PDT) X-Received: by 2002:a05:6000:b02:b0:32d:a10d:90dd with SMTP id dj2-20020a0560000b0200b0032da10d90ddmr7022351wrb.50.1697475464866; Mon, 16 Oct 2023 09:57:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697475464; cv=none; d=google.com; s=arc-20160816; b=uhvKa7P6BkeZ3+MjyFPvffjkqFAH5FcVUrsk9mmpa/VLvZIB8dZf2NwKc3iN4sSfL3 WpbmGajSFchMWVAWrRra6WQ3l4Cjhk7xOzgTdB4BpkmcT5TtdzykT+TdwwuU3jeSklmH nKouP+fzBnmTzABhwJQkRWMGSgc5VjpjkYPH/msTu5qqJofcZtdxNQ4AaG3ZlyG+fxat F0uoOOUU99hgB8uls2ThVW4YRwI2rIp6CoLI0KEVaSmt5Qsw7ztwpK+1t6UkzZi9u+do EFsros+wNXO3A+P3Qpl6nE5SmZ1laOahRx4c93VXmJD3rpQPYYVajSjtln5N6n8O8/n7 Q8BQ== 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=tCohvRnM1L772PiqozQJ6rKEKakalNGqyFG4pUoRrfCy7RZur06pDAZacwSbd0ATz1 LH4u2NT5QUNgSYofpohP1goXwTldBYq5DF3VoZbAmDJVApslOqgVmuUIsUudE2UaB60N IGkNJ9IGCjZm4jDr2593YEEnvCfPOHQMPxb0gWcjnp/KlA4lJ0t5TV1OJbAEB9SXb7vD IBbxmC8NLGvtZFuIuXzyjHTSN9qcPyaHCPEUpcgSiLfs96XkKtFoNdyeM8S9QyRSQf9g xZ7EUepyxhp4cwgJTjb8uiIXoFMRPJFSrzCP4/YzaWX7ZWkqLUD3JUYyH8MV5mtwhmsS SX2g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 as permitted sender) smtp.mailfrom=stefano.babic@swupdate.org Received: from mout.kundenserver.de (mout.kundenserver.de. [212.227.17.10]) by gmr-mx.google.com with ESMTPS id b1-20020a05600003c100b0031aef8a5defsi1221812wrg.1.2023.10.16.09.57.44 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 09:57:44 -0700 (PDT) Received-SPF: pass (google.com: domain of stefano.babic@swupdate.org designates 212.227.17.10 as permitted sender) client-ip=212.227.17.10; Received: from paperino.fritz.box ([88.217.136.221]) by mrelayeu.kundenserver.de (mreue109 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MGz5h-1qoHvP1sI7-00E2UP; Mon, 16 Oct 2023 18:57:44 +0200 From: Stefano Babic <stefano.babic@swupdate.org> To: swupdate@googlegroups.com Cc: Stefano Babic <stefano.babic@swupdate.org> Subject: [swupdate] [PATCH 07/12] hawkbit: add server name into the IPC request Date: Mon, 16 Oct 2023 18:57:35 +0200 Message-Id: <20231016165740.1374614-7-stefano.babic@swupdate.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016165740.1374614-1-stefano.babic@swupdate.org> References: <20231016165740.1374614-1-stefano.babic@swupdate.org> MIME-Version: 1.0 X-Provags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ijkCFQwSbp+f92mJv84bJPQ ZdqN1T5KCsV7Fm//5cxsnGEuy6dasRw3LthmsdS6/sWRRRZ5P2NKRZKOLL3pj4jLd7lBN6HVu lLZbAh7wTin9UD+J8ULqwwZfLYAMT3vaV9fw= 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.10 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 |
[01/12] Cleanup: use #pragma once in all headers
|
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(-)