From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 92F7C14BEF06 for ; Fri, 31 May 2024 11:20:16 -0400 (EDT) (envelope-from denis@tambov.ru) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id E2A3F4EEDB5; Fri, 31 May 2024 11:20:16 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1717168816; b=DwrJ5SfNqxq8a3j+QJTvBcEOCuOUqYWEuCcd42PuWAfihIvrNb qW9lGDgVahQOZAcWN9fsC6wSvgjhLSZ0FUAozZCDFoF+rgbw01x1qwgXz2TLLpXG +1D/IBtpBIIAhB7J3BwLY00DbvrSmAUu9Il6TmRrPFsEG8OF52sNbM14/oKvGjqw IKpuF/YVdPW5vSwBP34VvXrcM8Ih/Y+aRdUdL3V3u+xFcmQvwSBKxunAXgKwngXA vwDy2VD42oYORu1DlwzZtBgPF4x42JoBnF6wDjE6fyFwXHcCi8pbTIiQXbFzxw9n 5ZBZUUeepUy46LrAyCew/7QSeRVmrVJ18eHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=from:to:subject:date:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; s=arcseal; t=1717168816; bh=or6/JOg4bSfpU427RVu+1cL2vCc4vpRR0fK 1JKmIwTU=; b=hPmzldkOd0wGsLE+sg177kD3jhJhe+ZF3ZFnBHkgOmpedJhoPal CL1S+5qLepSdXMajYnIN/lx1ayeo4UQKq0psPlwI16rqy01mOU0FjWAa5TBzJwxo k9FRsJRBoU1wPWL0MPzox9d+lZondNVdLz2LBBTynE4o7EfrQNgU92yQDlWITz+5 O4/Tea7yzblXPhoDYvPCpKdSFc6W85dMERrU12ygGrhCRqFddDM4NYFZqU42+Myl NQXoTdHagfj8QThD9igHpT/EaTNMrjqaiwkDfByjiYQviB84fRU/TlEL+qBa7p+j u7Oepm3U3KEPvQhS8rH3W3eb/0nE9mFsXKA== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=fail policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none policy.arc-aware-result=fail (p=none,d=none,d.eval=none,arc_aware_result=fail) policy.policy-from=p header.from=tambov.ru; iprev=pass smtp.remote-ip=195.19.116.13 (witch.tambov.ru); spf=none smtp.mailfrom=denis@tambov.ru smtp.helo=witch.tambov.ru; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=witch.tambov.ru policy.ptr=witch.tambov.ru; x-return-mx=pass header.domain=tambov.ru policy.is_org=yes (MX Records found: mx.tambov.ru); x-return-mx=pass smtp.domain=tambov.ru policy.is_org=yes (MX Records found: mx.tambov.ru); x-vs=clean score=-100 state=0 Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=none (no signatures found); dmarc=fail policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none policy.arc-aware-result=fail (p=none,d=none,d.eval=none,arc_aware_result=fail) policy.policy-from=p header.from=tambov.ru; iprev=pass smtp.remote-ip=195.19.116.13 (witch.tambov.ru); spf=none smtp.mailfrom=denis@tambov.ru smtp.helo=witch.tambov.ru; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=witch.tambov.ru policy.ptr=witch.tambov.ru; x-return-mx=pass header.domain=tambov.ru policy.is_org=yes (MX Records found: mx.tambov.ru); x-return-mx=pass smtp.domain=tambov.ru policy.is_org=yes (MX Records found: mx.tambov.ru); x-vs=clean score=-100 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekiedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephfhovffuffgfvehfjgggtgfgugfksehtjeertddt ieejnecuhfhrohhmpeffvghnihhsucfmohiirggurggvvhcuoeguvghnihhssehtrghmsg hovhdrrhhuqeenucggtffrrghtthgvrhhnpedtudekkedvueffhfeiheeuffdtudfhkedt keegudeuuedvgeehteeggeeufedufeenucfkphepudelhedrudelrdduudeirddufedpvd dttddumegstdekmeegmeegmeemtgenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgr mhepihhnvghtpeduleehrdduledrudduiedrudefpdhhvghlohepfihithgthhdrthgrmh gsohhvrdhruhdpmhgrihhlfhhrohhmpeeouggvnhhishesthgrmhgsohhvrdhruheqpdhn sggprhgtphhtthhopedupdhrtghpthhtohepoeguvghvvghlohhpvghrsehlihhsthhsrd hilhhluhhmohhsrdhorhhgqe X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: none (tambov.ru: No applicable sender policy available) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="denis@tambov.ru"; helo=witch.tambov.ru; client-ip=195.19.116.13 Received: from witch.tambov.ru (witch.tambov.ru [195.19.116.13]) by tb-mx1.topicbox.com (Postfix) with ESMTP for ; Fri, 31 May 2024 11:20:12 -0400 (EDT) (envelope-from denis@tambov.ru) Received: from home-gw.tambov.ru ([195.19.116.209] verified) by witch.tambov.ru (CommuniGate Pro SMTP 6.2.15 _community_) with ESMTP id 496744; Fri, 31 May 2024 18:20:06 +0300 Received: from [2001:b08:4:4::c] (account denis@home-gw.tambov.ru HELO home.tambov.ru) by home-gw.tambov.ru (CommuniGate Pro SMTP 6.2.15 _community_) with ESMTPSA id 3090445; Fri, 31 May 2024 18:20:09 +0300 From: Denis Kozadaev Organization: Tambov State Technical University To: developer@lists.illumos.org Subject: Re: [developer] Raw ethernet packets Date: Fri, 31 May 2024 18:20:07 +0300 User-Agent: KMail/1.9.10 Cc: Marcel Telka References: <202405311715.39644.denis@tambov.ru> In-Reply-To: X-KMail-QuotePrefix: > MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <202405311820.07843.denis@tambov.ru> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 4b4d0ece-1f61-11ef-9328-a9283e1554ba On Friday 31 May 2024 18:04:22 Marcel Telka wrote: > 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. it was tested under dilos (probably illumos-like system) the network stack is the same. > 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. What would I do? connect an empty hardware NIC directly to another hardware NIC and snoop traffic on the test host (on the test NIC) you should see the same packet on the outgoing and remote NICs. it could be a kernel or a hardware filter if you don't see packets on the remote NIC. > Thanks. you are welcome