From nobody Sun Jan 15 16:55:10 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nw1VT2nbqz2tqGw for ; Sun, 15 Jan 2023 16:55:13 +0000 (UTC) (envelope-from ihor@antonovs.family) Received: from mail.antonovs.family (mail.antonovs.family [100.25.240.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.antonovs.family", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nw1VS2S53z3HlW for ; Sun, 15 Jan 2023 16:55:12 +0000 (UTC) (envelope-from ihor@antonovs.family) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=antonovs.family header.s=20200215 header.b=rR56SmtQ; spf=pass (mx1.freebsd.org: domain of ihor@antonovs.family designates 100.25.240.195 as permitted sender) smtp.mailfrom=ihor@antonovs.family; dmarc=pass (policy=none) header.from=antonovs.family DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antonovs.family; s=20200215; t=1673801707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wXrTbU3PYxxEjM9p/fqXj+Res4ttV5uAmOf/au1GhzM=; b=rR56SmtQUHM5A+OuaSL9Ad4WzUarSLMX3gJoHiRQ2sqWhUcPEhFckRfB/dx7/Ewbk6YATJ sG4mqrAw9ZI00f9fwpOh1SAgzMrLgScK27HX7mGFp95SW+8+OeZQt77WgOEh/Ez50QnF6M h1TWZAlJdIbOxprCFZxBD8bGMGrXC5w= Received: by mail.antonovs.family (OpenSMTPD) with ESMTPSA id a7d6cb9c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Sun, 15 Jan 2023 16:55:06 +0000 (UTC) Message-ID: <43be6da8-c929-6a7b-6fe5-6c841baef34d@antonovs.family> Date: Sun, 15 Jan 2023 08:55:10 -0800 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: netlink socket does not accept SOCK_DGRAM Content-Language: en-US To: freebsd-current@freebsd.org References: <92a63166-b3c3-228b-cda0-0cf769dfd364@antonovs.family> From: User Ngor In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[antonovs.family,none]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[antonovs.family:s=20200215]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[antonovs.family:+]; ASN(0.00)[asn:14618, ipnet:100.24.0.0/13, country:US]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4Nw1VS2S53z3HlW X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N > It’s a bug. The manage should state SOCK_RAW, but both options should be supported, which is not the case ATM. > I’ll fix it in a couple of days. > Meanwhile it may be worth looking into snl(3) which abstracts issues like this one. Thanks, I will take a look. Is there an example somewhere of snl usage? (my C skills are not very strong)