Message ID | ED5494CF-1689-4218-8B4D-5A2676D7627B@siemens.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBDD6BWV65QPBBJWI32WQMGQE75BVM2I@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=jrzU9yY0; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::f3f; helo=mail-qv1-xf3f.google.com; envelope-from=swupdate+bncbdd6bwv65qpbbjwi32wqmgqe75bvm2i@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-qv1-xf3f.google.com (mail-qv1-xf3f.google.com [IPv6:2607:f8b0:4864:20::f3f]) (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 4TNpc92xcXz23dQ for <incoming@patchwork.ozlabs.org>; Tue, 30 Jan 2024 00:12:09 +1100 (AEDT) Received: by mail-qv1-xf3f.google.com with SMTP id 6a1803df08f44-680b7da38bcsf64544166d6.3 for <incoming@patchwork.ozlabs.org>; Mon, 29 Jan 2024 05:12:09 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1706533926; cv=pass; d=google.com; s=arc-20160816; b=vg3dGCtmShPAQ85Nt+FBv2HbFCypywYefnMq0V7VOa/1/jt6FE0OC64IGfkSl+VIDC 2DcVYR2tLOgrf2lWC7GtvfD22DePw8Nb2dyqmZqcrxoSeH8aiJU1B3MLMGU8R2vZaoae ZkqmaE06IhjCkdXU+IXDXtFjGK4JzugAVQTepROl64w5j3v7N6LYyj84VXSRqd3pdC6t 8sIE+OASasVSpisVQgeDk93TY3Km2iy7WMfgYxAR+K1zGY70nqwvt4lmXyQwgq8c+DZF oaMneK4CZyBlVWeQH9gzhd0DowYdL5RM9jf304itAzHIT97yzpIsh/ZLkkbDpmAtStuf 11dg== ARC-Message-Signature: i=3; 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:reply-to:mime-version:content-id :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:dkim-signature; bh=bJgkFLvVfKb3t8MYwys9E6j40Ob3PccsrgzAOdEDBHM=; fh=ZnR/GV7fAozRX3tpIO3vp/Jbul8ISZhdVjghlw9eWq0=; b=I9r+FI87TategwZAMsgpzMIHH4c22QYiQppqqd4tWpr8RiIaIN72prVekmi7AUPKNO M32cXmuZHTEOGRKJQfIRt1gUO7wy5puCSTaCA3ieCoUJ2XS8TaTAdD9cISudCLuVOsIu FX60CCgjH05GGNyjdp09E2u1Elk171vv0W7nc55DoUIvAuyUGcrOFAw+LBRiYhs/8hc8 /qK/XhfJ8vq7poBVqUfuNZ5PTOqJHY/My2Ka9dstqx/yA4GXY8z8lGlz92cayJcfeHN0 KJZ0WaS5fG7yq9L3aoegYU6+3gpNkBlUEckZn93aC63O2nrV7DZQfIKnkqPuJke9lKXg /LOA== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="Qn/urL7N"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of christian.storm@siemens.com designates 2a01:111:f403:260f::601 as permitted sender) smtp.mailfrom=christian.storm@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1706533926; x=1707138726; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from:from:to :cc:subject:date:message-id:reply-to; bh=bJgkFLvVfKb3t8MYwys9E6j40Ob3PccsrgzAOdEDBHM=; b=jrzU9yY0hmUKLyDduRzvHk3ENZX//BYWcCDueR0hywY8sYQXLdVcbuou97ggyit6hI lgJS6P5Ke2sAdRCjScRqGAYFxzyPbQspHWv6TOtlqghDwv1atHHLRvq+SJPgo6W9XkhD yh0ksgbLmTWnl7LjELBvXA+5rwjtofjOfxBWumGvn3yp0gnmJwpX7vbOPzG00wk7FyoP 46Xqe4yM6YK7mzwrGRilYZttoBezN9zimtplRhyXJ8DLzwktEOQ1jkJSVqRMMZUh6T/9 qO0N2XF5ei1pzi1A8HoWiQKoK0KGwX9KMfq813YkuU/+LccvZYU8RfsnAAAgXpcYEBPU 60xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706533926; x=1707138726; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bJgkFLvVfKb3t8MYwys9E6j40Ob3PccsrgzAOdEDBHM=; b=psVjtpfEnzrNf9k4x5OvSYgPNKMCslH8/WNRDb0c2L/cD6PJN+XRQ67qYMXQxoey8Z xuSfaXMelArn1/rDwWJfzryvp1vOzq+Xt/HIrhBjkqt3b8OnfmpMX/AcQTeLG+D2MRjA uAE8JTnvlArX4eLhO6HC7j1cMjR3GwYOM5AM21+1bcdi+9IU/iXQCCvKaf0zP3DBTVCN ww/OvkLmP4gADXGyy445oTIEoLe0rKlhkbszDLuY0lk20f9SUl5RMbqlZ8BGAv5GyY9+ DFVYXTmgzye773ANfLnjOrRbFlakn4vYpx+1p7KMOmiB0mg4d7FFTX+rc6EOstxWvS8O ADyw== X-Gm-Message-State: AOJu0Yx6TGI7IiP5WsXTAYMyNUNsYGKCrJHP9FSL6te27kaQNhxDeR7p MGTlSgaH+D8UrKrJoxq699AS+qRJztlYBoLLlF8mWxW1Rp6aA+Su X-Google-Smtp-Source: AGHT+IHFlTBI2aNZa3jSs6TkVwx3X8j2Zn87r3rZtYAyX//ZVuJ/s/Gtws8P76FMTCR5+xV85w1rxQ== X-Received: by 2002:a05:6214:19e1:b0:686:ad3a:b6f4 with SMTP id q1-20020a05621419e100b00686ad3ab6f4mr6102375qvc.75.1706533926415; Mon, 29 Jan 2024 05:12:06 -0800 (PST) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a0c:ab0c:0:b0:67f:476:d152 with SMTP id h12-20020a0cab0c000000b0067f0476d152ls933553qvb.0.-pod-prod-04-us; Mon, 29 Jan 2024 05:12:05 -0800 (PST) X-Received: by 2002:ad4:5aeb:0:b0:685:d222:cf99 with SMTP id c11-20020ad45aeb000000b00685d222cf99mr7231772qvh.121.1706533925311; Mon, 29 Jan 2024 05:12:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706533925; cv=pass; d=google.com; s=arc-20160816; b=zmBz6VVqKGObKgEj2UT8e8tYYVqeJpuaiNoxF+a3XRopuMQBB3/8ryOJBul/tswFP4 nTmvYHLHNlVoK9OkKB/QbwHOw8JX1EzyEsOlOh7G1gQKNtPlQd0nZGVix8/rCc8DjDgy A53qB0OdoK5n8xnHNpRr/CFj2zoqbJwAAMkeoXuMpTT7zAZuDM1LGr9GhxAzLHcnqElj ysIHhA1YLMefqxwWjOoTuhLGLsPsaSMdjKmVWTCWGSriFaPhpkGH3Ej0hJpcYjo2P9+4 a1hbFKEz6ozx9ob9sK/NTH8e4hHhLWDXAFz/tU8U9c4LWoI9lTU1L/8KfjTCpCZOk3UO LVBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-id:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=9GBjiV5VnjFX8IGQ2jW1IxL1wV8Wt9P5pvto2XLxZ7M=; fh=ZnR/GV7fAozRX3tpIO3vp/Jbul8ISZhdVjghlw9eWq0=; b=nCl+NBfpGApzYYecCHWfQHxZme5RQaGK4bN8ylN5xIRhuVRiiKJk+V2cSNfzb3A7le MzAcoUtXyDitcBJ1J8DaRM5C5c1hBBkXBQJ/lR1ZFkgXxlIfzQ/wmIkSHZ9dHGS2W7dJ Amup9DdTsmUbXzW15+WH9Nv9d2SiRHdvCv96/BTDpW97nP65hIIKE4B4cWvjXmrjSDh9 A7sbUBXpL6vUPAoKL+gXZfRvZXQHW9vVCDDGKQWxzewQZN4OhIW8rFnNqfXqAnqKg7O7 fjRFTG84oMuGEWsBLnyvscCTL/RI1MWFJFX36EjVhMQUddTSsgEjzrDdZmBRjIJJ8Qmm KH+A== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="Qn/urL7N"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of christian.storm@siemens.com designates 2a01:111:f403:260f::601 as permitted sender) smtp.mailfrom=christian.storm@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on20601.outbound.protection.outlook.com. [2a01:111:f403:260f::601]) by gmr-mx.google.com with ESMTPS id i5-20020ad45c65000000b0068c4cfef6bdsi206160qvh.4.2024.01.29.05.12.05 for <swupdate@googlegroups.com> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2024 05:12:05 -0800 (PST) Received-SPF: pass (google.com: domain of christian.storm@siemens.com designates 2a01:111:f403:260f::601 as permitted sender) client-ip=2a01:111:f403:260f::601; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m+NxlRwF+/QT+mMVhdZJfQJD5QFafiECE1jubYUziidCHI1U0+Z5l8DoWB2b/PYt9IWUefoHeSMfwEGHqxQ6IFXLemg/RY6xF0RiRBkB2oNK0bOBxETQq2+Op2RwQl+Pit6HOEjY9kXSrnvDtlWMLJg6uVVh5Pm8PFWZkbi8OD4r2qW97g0iGcOIUbM1Rmtuw8S04Vki3lT6oHaYgmuaEYVLonsZVDK1LGALx7VTFp++Yiysh0pBULEK5N4x532jubEGIHHyHHcwuqA8dkqeXBjAaKWhd8xmOdgrf06sOgRel3BZr3nqFprNHu90L7Dg5mT7s3FxF/NT+qCpMFYSlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9GBjiV5VnjFX8IGQ2jW1IxL1wV8Wt9P5pvto2XLxZ7M=; b=VyufmVg1SqoMv9rZnPWiQ7yeVzyGCsaAC0XLqI/TUp04qvqOywLk0ZXLDm9DFrOwUNftkNqUNs8rQDGJsaOKrnL070Y6oY17cc8n316+MbBhT39b/8YbG1rwlzoI74oHDHSS6xPF969QA9ZNEYLoThyOR1rlilW8U5qFe6U/BTkjk8Ce7u8/A4VRm7ecJ5MuhWPZvYeEfMy5omZlLiNkD+7ZAzYpxgIQkfUPjywxQsAtgHcvjSD9fV1XFQH75O+RTGOyG/KclbeHV4rQ/UfLrAnGSDw9MgyE9RQ+tKQSmHepiLRql/dHmKKWIGa4zAWQ9lThreMwS2tU6xz4QHbzww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from DB9PR10MB5404.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:333::17) by PAVPR10MB7163.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:313::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.32; Mon, 29 Jan 2024 13:12:01 +0000 Received: from DB9PR10MB5404.EURPRD10.PROD.OUTLOOK.COM ([fe80::3145:d77a:1976:e89b]) by DB9PR10MB5404.EURPRD10.PROD.OUTLOOK.COM ([fe80::3145:d77a:1976:e89b%7]) with mapi id 15.20.7228.029; Mon, 29 Jan 2024 13:12:01 +0000 From: "'Storm, Christian' via swupdate" <swupdate@googlegroups.com> To: swupdate <swupdate@googlegroups.com> Subject: [swupdate] [PATCH 2/2] FreeBSD: Set proper notifier socket buffer size Thread-Topic: [PATCH 2/2] FreeBSD: Set proper notifier socket buffer size Thread-Index: AQHaUrS+Jkd5l6h9RUiBM7udIEyg0A== Date: Mon, 29 Jan 2024 13:12:00 +0000 Message-ID: <ED5494CF-1689-4218-8B4D-5A2676D7627B@siemens.com> References: <8003F0C8-503D-492E-8FEE-8280649FBB6A@siemens.com> In-Reply-To: <8003F0C8-503D-492E-8FEE-8280649FBB6A@siemens.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB9PR10MB5404:EE_|PAVPR10MB7163:EE_ x-ms-office365-filtering-correlation-id: c23f79d2-f681-4f63-5d5d-08dc20cbe149 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: L3cJGnahLsRX/1UN0q9jXhaGVLW46td21iXVytxpHoFW1FecwzBT95rYkDwlZCJHjIbuAiHvtzP8ltaNKyrwiWFHHATUqSVHi0XJs3rnQ05L0zhQ2WflC3udbnVf8jfkXWq4UaQ8kY5AE9obCuSoTJEg5rfINQhCNScQWpTVLO2ZL0Qp1NqWRhEubZqARpcU+bK/+LgJjcALaXlUGOiToQqnTtCFdWovJPvHk2/rLO8vcsYULC01Mb2X5N76y9LioNfwcW7eD5CnUdQIGFDRHU4b+QDEH8VkTmYtyya3I4GxZNhgevecA4bMAVji4VBdBm3xdGcAwqy4VbgtpmgFOieQ3AxHnKz9JoW8CMygvBVD+yAGcIS0wDOC9Td8QAQ/SJKSo1MeNGkpq/u/IJlvkuaL0GZ4xVuZVZ7mWOHQiN/wLe7IITLB3KQlgIrV6BeGJLJnVycFCiIIiWD/n7yhvhQsPZchZ6t03GgYS3v7WEDIDMPsFkKtfGdaGVNR4Yivu9KjgMCnz3WOFTXDv0SBLXa4Mw1/9p338Qvzj1j5tkGZk0U2eqBYVvssiXWvB6zoZmAotSIJKsKbeB2pJ14nFh3IW+NrgXSBn51Pz4TgG+xDFFI8SpAP/7eJXOqXTZ/ZlgoR6Q5nC1HSZi2IEkUp1Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR10MB5404.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(346002)(39860400002)(366004)(376002)(136003)(396003)(230922051799003)(451199024)(64100799003)(1800799012)(186009)(41300700001)(26005)(2616005)(66476007)(6916009)(38070700009)(316002)(66446008)(64756008)(36756003)(71200400001)(6512007)(478600001)(6506007)(83380400001)(6486002)(66556008)(38100700002)(82960400001)(122000001)(66946007)(2906002)(76116006)(86362001)(33656002)(5660300002)(8676002)(8936002)(45980500001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: +mWOBZndTSSou+2xfsBg4zJT19h8c8jNAGSSU1P1kL1ogOZKD2reXTmcZakVcYhHGJi9V1MIC4uBWkUek0Jc5R5rSftO7e08ymeQtpN1pw0n7lsv+ZYCMKcleykL3A5V/1GuqCQR1NdxJ0A4gOVOK79oObKbqAowLcGMmOH5Uo3oxrqczKttNPYs0snWt9W4NW2ZXjkHdCPO7trxDlsv+ZcucWsADm8LB643SFvUAhdWu65ZQEZ3b22WbRK7/jqTYdEfhqVwV9AmZeHZQmPZkoaYHUc93Zdk7vrVlhDZu7rho8IOGoWs1c5g7ox9YmLifd2Xcga2w9eogl1LPiTHTHoFuHxPNUwEBlOs2cxOf79NaMdE6DxL38clESUfj82SI54+3yfC/Ou5spQ5N8Vn4+XwpSHwIApEpiEtzMzxVbn80XA47drt1TEcB5+t5H16HL2rfkQ8xYskFw2XxL7jnX/JHSr+Lz8dpMX+xG8m6fVrTsvhB0xAzeSIZ7Z33s9S2qpbqCOfyyI7yjs/Q+vzZmNtlOyzm3RrgjLwBzpYcFOtz/d1vmhLMg551FxL7q4VyIstk0m94Y6yHG8zKppV43km0BJGZty3exQR8q9lAuhOhc9AyqQUUdzJ0jS3ZTMJP8wU9NIQWgHecBtr4ie/ppVisqhwwRJDT29mn9MF6THtfPcsyD66+mD3dKGYxQT/0zAAzXejUONJ6ONsCd9386Dy/cdLTiSMM5KZsh+yjDThFs9pIOz6VxXJfQR21EtGWZjJqQzNSEh1nTSRg/Aofp6F4hAoVgx5m3QGlsypEQMAGYdgXbgoaoW8j13MhuFngQii/EqGxFQlBhjqlnXNFGSjRKJNC3tO5zgmYnoUayNM8GeVBpNcZ9DS2LDlVTGny/zskWTRZbAMTcWSne9RhWFaLQ4Aah3sNCBdvtvQoS3Wa021J8YkIEMx9Q1CgcwEt+t7IlS+U1uZeIeSI9tpolawrLRn4KGHr183J2kvvos+9u/bsZdGLKG5IUnh1gbiOLZ0WZy0Xjw+3KINS9IGjVuSY838snK4NTldaMngImJighMYOELVDOaSp/mlWcKRVTYWILaC/GF04x9dA3JzeM4W231hcgwMRdQntaltmgxcSpBipUneB4NrkcUwhS+nwg6yqdWpnL/K5+KMg40FnmTnCxfuLXxgCzE1LxDO8JGceKFLZY7bDkf5zpLBxN6eQakijl4Vb72eKBlZO8nx6e34L+D0jZGULEggCq1lZ0o9KbZSKw9FBFFr76WPujxzqKIfDQgGQQoj1UM7IzggDcQEKa0OuaOwA0Lcz+EV+m82CAaK+nwquB9mj3PlmUo5ePbgWWmjxwJ/RShufPwABG1rpsouOXJgON9ja28OAjpiGLYVXaZ2X716QKM+TMw2ZB3+Ope4w3GtUcPVO9hHCGFC6lBRqasgMeA73kLr/kl6yfBmfOWWHYPl+dQdZEps+eT6rRgU+lH9YazLhgJhi0VHN6uYNt7jxi6AQ6R2J2H9QzhaNEX3hjRUEOI28D5rLa413wGlljIZuQEjsnKtLZID5TI8pJIdwT9+01fiGx0k20S4PQlUdtPWT2PC4z/G3suJL481RGthWrEpaehGBQ== Content-Type: text/plain; charset="UTF-8" Content-ID: <BB26C7AF35288F40910523764FD5A8A8@EURPRD10.PROD.OUTLOOK.COM> MIME-Version: 1.0 X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB5404.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: c23f79d2-f681-4f63-5d5d-08dc20cbe149 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2024 13:12:00.9844 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LHD96pcsHaL44RTiwVIe+FWxVSOh+Rw3PJqWdLOJ1B2yUikC2q0HTY9kOhEYGRlqXKU3G1XtX62WZJWVZuV3HYtUk96cQX+NlGBBu8Ud4R0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR10MB7163 X-Original-Sender: christian.storm@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b="Qn/urL7N"; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of christian.storm@siemens.com designates 2a01:111:f403:260f::601 as permitted sender) smtp.mailfrom=christian.storm@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: "Storm, Christian" <christian.storm@siemens.com> Reply-To: "Storm, Christian" <christian.storm@siemens.com> 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 |
[1/2] FreeBSD: Rework notifier socket location
|
expand
|
diff --git a/core/notifier.c b/core/notifier.c index 967822e1..dace9909 100644 --- a/core/notifier.c +++ b/core/notifier.c @@ -381,6 +381,33 @@ static void unlink_notifier_socket(void) socket_path = NULL; } } + +static void set_socket_bufsize(int fd, int whichbuf, int size) +{ + /* Round size up to next ^2 ... */ + int bufsize = 1; + while (bufsize < size) { + bufsize <<= 1; + } + /* ... and add some headroom. */ + bufsize *= 4; + socklen_t buflen = sizeof(bufsize); + int res = setsockopt(fd, SOL_SOCKET, whichbuf, &bufsize, sizeof(bufsize)); + if (res == -1) { + fprintf(stderr, "Error %d setsockopt %d=%d:%s\n", + errno, whichbuf, bufsize, strerror(errno)); + } + int effective_bufsize = 0; + res = getsockopt(fd, SOL_SOCKET, whichbuf, &effective_bufsize, &buflen); + if (res == -1) { + fprintf(stderr, "Error %d getsockopt %d:%s\n", + errno, whichbuf, strerror(errno)); + } + if (effective_bufsize < bufsize) { + WARN("Notifier socket buffer is %d, expected: %d.", + effective_bufsize, bufsize); + } +} #endif /* @@ -444,6 +471,11 @@ static void *notifier_thread (void __attribute__ ((__unused__)) *data) fprintf(stderr, "Could not set %d as cloexec: %s", serverfd, strerror(errno)); } +#if defined(__FreeBSD__) + set_socket_bufsize(serverfd, SO_SNDBUF, sizeof(struct notify_ipc_msg)); + set_socket_bufsize(serverfd, SO_RCVBUF, sizeof(struct notify_ipc_msg)); +#endif + int len_socket_name = strlen(¬ify_server.sun_path[1]); do { @@ -534,6 +566,11 @@ void notify_init(void) if (fcntl(notifyfd, F_SETFD, FD_CLOEXEC) < 0) WARN("Could not set %d as cloexec: %s", notifyfd, strerror(errno)); +#if defined(__FreeBSD__) + set_socket_bufsize(notifyfd, SO_SNDBUF, sizeof(struct notify_ipc_msg)); + set_socket_bufsize(notifyfd, SO_RCVBUF, sizeof(struct notify_ipc_msg)); +#endif + if (bind(notifyfd, (const struct sockaddr *) ¬ify_client, sizeof(struct sockaddr_un)) < 0) { /* Trace cannot work here, use printf */
Explicitly set socket buffer sizes as the default may be too small for struct notify_ipc_msg, resulting in errno == 40 = EMSGSIZE = "Message too long" errors. Signed-off-by: Christian Storm <christian.storm@siemens.com> --- core/notifier.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+)