From nobody Sun Jan 15 20:43:22 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 4Nw6Yq1cSSz2sbF0 for ; Sun, 15 Jan 2023 20:43:27 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Received: from forward501b.mail.yandex.net (forward501b.mail.yandex.net [178.154.239.145]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nw6Yp5xmqz3t3Q for ; Sun, 15 Jan 2023 20:43:26 +0000 (UTC) (envelope-from melifaro@ipfw.ru) Authentication-Results: mx1.freebsd.org; none Received: from myt6-a7b93d14a87c.qloud-c.yandex.net (myt6-a7b93d14a87c.qloud-c.yandex.net [IPv6:2a02:6b8:c12:2492:0:640:a7b9:3d14]) by forward501b.mail.yandex.net (Yandex) with ESMTP id E5B415E773; Sun, 15 Jan 2023 23:43:22 +0300 (MSK) Received: from mail.yandex.ru (mail.yandex.ru [2a02:8084:d6bb:510:946d:67e4:70ce:c95f]) by myt6-a7b93d14a87c.qloud-c.yandex.net (mxback/Yandex) with HTTP id vgpDmB2ZN0U1-8yGHhl7F; Sun, 15 Jan 2023 23:43:22 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfw.ru; s=mail; t=1673815402; bh=iCUvsoGfBuM05ftj0Uvp2YGMA1g/ZjSIhp94JvcUBM0=; h=Message-Id:References:Date:Subject:In-Reply-To:To:From; b=icTyXcyVBCiX7IierrkwOmhdswnGuXWCWEhX+NfrRIGXJmwFKPeVHnIer2qySRgcm aGL2D41LSROBMxLHQkzzAlz9jd6AbaYgZMhon/2+QJF/dlpGgdJwBzBgYtKXC8rE31 YzScEIJ3UObP8iZ2qJD070OcrWm8K/8PGeoBoqdo= Received: by gnj7pzdquwgrabfp.myt.yp-c.yandex.net with HTTP; Sun, 15 Jan 2023 23:43:22 +0300 From: Alexander V. Chernikov Envelope-From: melifaro@mpls.ie To: "freebsd-current@freebsd.org" , User Ngor In-Reply-To: <43be6da8-c929-6a7b-6fe5-6c841baef34d@antonovs.family> References: <43be6da8-c929-6a7b-6fe5-6c841baef34d@antonovs.family> <92a63166-b3c3-228b-cda0-0cf769dfd364@antonovs.family> Subject: Re: netlink socket does not accept SOCK_DGRAM 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 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sun, 15 Jan 2023 20:43:22 +0000 Message-Id: <6182901673815402@gnj7pzdquwgrabfp.myt.yp-c.yandex.net> Content-Transfer-Encoding: 8bit Content-Type: text/html; charset=utf-8 X-Rspamd-Queue-Id: 4Nw6Yp5xmqz3t3Q X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:200350, ipnet:178.154.224.0/19, country:RU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N The snl(3) manpage itself includes some examples, including the complete working program in the end


/Alexander

15.01.2023, 16:55, "User Ngor" <ihor@antonovs.family>:


 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)