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 56C831939278 for ; Fri, 31 May 2024 07:23:08 -0400 (EDT) (envelope-from denis@tambov.ru) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 93FB80B4BF5; Fri, 31 May 2024 07:23:08 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1717154588; b=TO8hFpsyvdu1BbsPibzalw2lM24Hs9zzw6gx5wusYSFikbVx0L aC6L6CFM1x6wmWU+V+M1WyB4wkiTfk/OZITAFxYvIUk+2vOlDbDgL/XyTbOsfO0q hp0LE6C2i5yzGjEr7NRsIp16jpvwdcahk2PFepxfcCV9lfOvTrW3dR0Dc+OCEHMl uW0gzVFs0aKiDUCLs0nBl4VssYSsLnO1+BrDFtTvrjBhzjuihcADZE+XFzyBB2+u IrGTkaNVaLzuVyvI6lIRu8nUkxqY9v/Rl14v8LWW0eX9kU62US0bkonN9zdvHvFy 0uUxN94a7eZj68BsMcW1mMCOiyuAszbKKVnQ== 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=1717154588; bh=Queb+2RrHbLT0Jnuu8/ecoDM0gsUq3S1J1c igWkppSc=; b=DtYsZ8Qmr1zDKTA5FvrQJtHH0CaMAW//IMA5uCKIr4SZ8YdPQ1+ L/TxoDolIqtbD5vjPNq20AHuNpEHiFgzuojnaBDL9wXTPDL4VQoevDx4bOhUzJ27 bNetqAE8WuRAm7ckJi0TPGeq1bqCtKyHkI/9AOlDFayaJj/5rWDxWxQJyp3pmfZb bCGEnMTtaMVodc/lFEDQfwwM8df4xvc2X6Q8wNPCxouwrlIWJ9NiOVkne5q9jflW OK+w3QxEMQKOEeO702vk7aSkgAG9EKFf1ki8vEbIJ2eF5uRmi0dOBbsj3pJUxbCE YlutsqDPg6LahrOC0eDOUPab+kSNjSY+eYg== 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=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-mx0.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: gggruggvucftvghtrhhoucdtuddrgedvledrvdekiedgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephfhovffuffgfvehfjgggtgfgugfksehtjeertddt ieejnecuhfhrohhmpeffvghnihhsucfmohiirggurggvvhcuoeguvghnihhssehtrghmsg hovhdrrhhuqeenucggtffrrghtthgvrhhnpeeuhfejtdfgtdefheeiudefudduieffteeu ffehheefudelgeduvdevtdetffejieenucffohhmrghinhepihhllhhumhhoshdrohhrgh enucfkphepudelhedrudelrdduudeirddufedpvddttddumegstdekmeegmeegmeemtgen ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrdduledrud duiedrudefpdhhvghlohepfihithgthhdrthgrmhgsohhvrdhruhdpmhgrihhlfhhrohhm peeouggvnhhishesthgrmhgsohhvrdhruheqpdhnsggprhgtphhtthhopedupdhrtghpth htohepoeguvghvvghlohhpvghrsehlihhsthhsrdhilhhluhhmohhsrdhorhhgqe X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: none (tambov.ru: No applicable sender policy available) receiver=tb-mx0.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-mx0.topicbox.com (Postfix) with ESMTP for ; Fri, 31 May 2024 07:23:06 -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 496739; Fri, 31 May 2024 14:23:02 +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 3090443; Fri, 31 May 2024 14:23:05 +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 14:23:04 +0300 User-Agent: KMail/1.9.10 Cc: Marcel Telka References: 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: <202405311423.04150.denis@tambov.ru> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 2ac82f06-1f40-11ef-b080-d9f5088c7b06 The send() function can be used only when the socket is in a connected state. (c) manual page at https://illumos.org/man/3SOCKET/send Use sendto(), Marcel. On Friday 31 May 2024 14:08:45 Marcel Telka wrote: > On Fri, May 31, 2024 at 11:51:42AM +0200, Marcel Telka wrote: [snip] > send(s, buf, sizeof buf - 1, 0); > > So this is basically the same outcome as with my bpf approach :-(. > > I suspect there might be some packet filtering involved in kernel? This > is mostly the default OpenIndiana installation (up-to-date) on real HW > (not a VM). > > > To check that there is really no packet on the network I started snoop > on another machine (a snoop machine). When I try `ping 10.0.0.61` (on > machine 10.0.0.13) I see following (on the snoop machine): > > ETHER: ----- Ether Header ----- > ETHER: > ETHER: Packet 24 arrived at 12:54:11.78570 > ETHER: Packet size = 60 bytes > ETHER: Destination = ff:ff:ff:ff:ff:ff, (broadcast) > ETHER: Source = 0:1c:25:a0:b7:2e, > ETHER: Ethertype = 0806 (ARP) > ETHER: > ARP: ----- ARP/RARP Frame ----- > ARP: > ARP: Hardware type = 1 (Ethernet (10Mb)) > ARP: Protocol type = 0800 (IP) > ARP: Length of hardware address = 6 bytes > ARP: Length of protocol address = 4 bytes > ARP: Opcode 1 (ARP Request) > ARP: Sender's hardware address = 0:1c:25:a0:b7:2e > ARP: Sender's protocol address = 10.0.0.13, 10.0.0.13 > ARP: Target hardware address = ? > ARP: Target protocol address = 10.0.0.61, 10.0.0.61 > ARP: > > > 0: ffff ffff ffff 001c 25a0 b72e 0806 0001 ........%....... > 16: 0800 0604 0001 001c 25a0 b72e 0a00 000d ........%....... > 32: ffff ffff ffff 0a00 003d 0000 0000 0000 .........=...... > 48: 0000 0000 0000 0000 0000 0000 ............ > > Please note the packet data (should be same as the buf above). > The IP address 10.0.0.61 does not exist on the network. > > With this setup when I try the code above on machine 10.0.0.13 I see > nothing in the snoop output on the snoop machine. > > Any suggestion where to look next? > > > Thank you.