From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 190E9193E766 for ; Fri, 31 May 2024 11:04:28 -0400 (EDT) (envelope-from marcel@telka.sk) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 9E9978983B1; Fri, 31 May 2024 11:04:28 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1717167868; b=rJrRuyIeF4NbA2+B25qrpFs4LtGLupHPbTgvwSUFNkwz0pCcgj D+VSny61ioZ/mV4xAseuCe/Q8pJwPf1dpFME6ky8U6p4m240Zrt+GpdOtV06LPDV JgyDIfr2Ex1Xvtm2BSOxyzeUzbmBB9Gx6nWEPpOcfZIH4flUOKJHQGWI2Opkp4vm VIj5TYKQwCzWy8VuIkHnPI3701S0fvZKuRMO9F3KQPyl0yTRI657pbL2lHVMNm94 u/Yr1+9TxGuI4+bl+mIxicrIcaMfzSAJTxWnWUZ8yHJzhvtVUa5Bc4zUud3MRQKc ATqddaqQVWqk8qhgYx9UitqsZoAn1QuEwOSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:references :mime-version:content-type:in-reply-to; s=arcseal; t=1717167868; bh=ms/d4l34lf3suBLQrrC52PpC5J7ZAOfLkzLidLjNb0c=; b=B3OlEmuKinR3 9IDxEagVDczw8avEnt7n9yMrTpWwb5L9jGDgXkJRuUl+Djvnwm3kTGzSXkq6qKwx da8HbM3I4rcgzQc0oK1wsUJlD78qOExSdZ2BQCvQdEjKWfnlukTdEmz+OEXao5JZ GOnHJvMTFUaEmm5d0erJEAEhgw5f4K9Hq7wvlspGbKV4/l3K4yWGVkNYjrGmCCv/ Kb0He9gncT4W9AJG0CXuVgTiooO1f0bWYv4IZcUet/tzPSsbirW9r/9grrrKoOAx eUS/cuul6s8regMMVvBJ1VDIQtrJQ6DaCB8P9gyTg72mmYhVGDUHVES/36TwmMVA XthGIseVYw== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=telka.sk; iprev=pass smtp.remote-ip=185.14.234.118 (tortuga.telka.sk); spf=pass smtp.mailfrom=marcel@telka.sk smtp.helo=tortuga.telka.sk; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=tortuga.telka.sk policy.ptr=tortuga.telka.sk; x-return-mx=pass header.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); x-return-mx=pass smtp.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=telka.sk; iprev=pass smtp.remote-ip=185.14.234.118 (tortuga.telka.sk); spf=pass smtp.mailfrom=marcel@telka.sk smtp.helo=tortuga.telka.sk; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=tortuga.telka.sk policy.ptr=tortuga.telka.sk; x-return-mx=pass header.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); x-return-mx=pass smtp.domain=telka.sk policy.is_org=yes (MX Records found: tortuga.telka.sk); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekiedgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecu hfhrohhmpeforghrtggvlhcuvfgvlhhkrgcuoehmrghrtggvlhesthgvlhhkrgdrshhkqe enucggtffrrghtthgvrhhnpeefteegveevueegkedtteeifeevgedvkefhvdeukeduheeg vddvvdfgjeelhffhhfenucffohhmrghinhepthgvlhhkrgdrshhknecukfhppedukeehrd dugedrvdefgedruddukeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhn vghtpedukeehrddugedrvdefgedruddukedphhgvlhhopehtohhrthhughgrrdhtvghlkh grrdhskhdpmhgrihhlfhhrohhmpeeomhgrrhgtvghlsehtvghlkhgrrdhskheqpdhnsggp rhgtphhtthhopedupdhrtghpthhtohepoeguvghvvghlohhpvghrsehlihhsthhsrdhilh hluhhmohhsrdhorhhgqe X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: pass (telka.sk: 185.14.234.118 is authorized to use 'marcel@telka.sk' in 'mfrom' identity (mechanism 'ip4:185.14.234.118' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="marcel@telka.sk"; helo=tortuga.telka.sk; client-ip=185.14.234.118 Received: from tortuga.telka.sk (tortuga.telka.sk [185.14.234.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for ; Fri, 31 May 2024 11:04:25 -0400 (EDT) (envelope-from marcel@telka.sk) Received: (qmail 27658 invoked from network); 31 May 2024 15:04:23 -0000 Received: from telcontar.in.telka.sk (HELO telcontar) (marcel@10.0.0.10) by tortuga.telka.sk with ESMTPSA (DHE-RSA-AES256-GCM-SHA384 encrypted); 31 May 2024 15:04:23 -0000 Date: Fri, 31 May 2024 17:04:22 +0200 From: Marcel Telka To: illumos-developer Subject: Re: [developer] Raw ethernet packets Message-ID: References: <202405311518.23145.denis@tambov.ru> <202405311715.39644.denis@tambov.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202405311715.39644.denis@tambov.ru> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 16509dc8-1f5f-11ef-a2df-6ed6fc8b7b06 On Fri, May 31, 2024 at 05:15:39PM +0300, Denis Kozadaev wrote: > Ok, I tryed to reproduce your task. > Speaking shortly it works, see the attached file. Thank you for the test! Was this tested on illumos? Your `gcc -o tst main.c` suggests it is not a vanilla illumos machine because to link successfully I had to add -lsocket. There is definitely something strange because it does not work here. I tried your main.c on a different machine (a virtualbox guest with up-to-date OpenIndiana) with replaced "dev0" by "e1000g0" and I see the same results: result = 60; errno = 0 and no packet on the LAN. Thanks. -- +-------------------------------------------+ | Marcel Telka e-mail: marcel@telka.sk | | homepage: http://telka.sk/ | +-------------------------------------------+