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 068E81A9751D for ; Fri, 31 May 2024 08:18:31 -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 D719E1D729E; Fri, 31 May 2024 08:18:31 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1717157910; b=d7bn9/IS/vKWyjcDCqJrL5QmgHw0b3PacTPl+nI7vemQj5X2Vn Br8t26uVfu181kjogjxjJKcRrQLTxavYoqwZ6Ukv6OpVx9wzxqcqlSYCaMsVykZ5 5Yu2S4U+7d0vHueIDhVhuCSxdMpjinnubv6/97OdZWqNp9OMdJnWrWLkbTxqX1J5 kyh832Jr7x7S6dV/qIu9Aax6wCGVBVJJBbasgchYj5L10ce1zW3xk5HkW9BzD++2 UPnXpy/6gxK09XmSJ7+XeQ7BiQO3i9oC0yWCmas2qE7G5AMTnLFOJizQkZYs9wDJ inExEUdfv39KPpyWrzH61rTzxFyhFQ91Dpqg== 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=1717157910; bh=z212uBVr2b3N3C+v5p3k/2+prpFP/kefAy0 0X+gED5k=; b=AhX7pf8ZY7uLjKfZA6IYxtqTAH6Fhn95KbtrEDq0BMTTcQ5Mcxp +pF0V6oWKH3poopoKQ8A41s6wBHlhSHY3sLVD00SBwI0cghHAEJLlKC2LVRJ8CK7 CpW/jRsyoQDC3Q60+KCj8jyySNnt+6K8krdiqkCpfAweBGiC09Q4JAipBgN2oHGi IksyB4VW2ovb1KA2EKaPhmyADI0ORRZx8nt0XOauj+9aBE9xmKHacJyGjsA84jJx SvtQ0tC6BMJZg6v91DR4N+VjP8R3jSVcDmebytez5dL4vPW7Yid7rt/K2csGBAtN aenz70lMDIymBj+5xQwMGGue8ZEbpY8OQMQ== 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: gggruggvucftvghtrhhoucdtuddrgedvledrvdekiedggeelucetufdoteggodetrfdotf 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-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 08:18:28 -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 496742; Fri, 31 May 2024 15:18:25 +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 3090442; Fri, 31 May 2024 15:18:26 +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 15:18:23 +0300 User-Agent: KMail/1.9.10 Cc: Marcel Telka References: <202405311423.04150.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: <202405311518.23145.denis@tambov.ru> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: e79789e0-1f47-11ef-8d62-a19d3b3fe995 On Friday 31 May 2024 15:07:13 Marcel Telka wrote: > On Fri, May 31, 2024 at 02:23:04PM +0300, Denis Kozadaev wrote: > > 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. > > sendto(s, buf, sizeof buf - 1, 0, NULL, 0); > > gives the same result: succeeds, but no packet on the network. it is because send(sock, buf, len, flags) could be equivalent to sendto(sock, buf, len, flags, NULL, 0) it depend of the implementation You should specify a real address for sendto() and yes, the packet and the address have duplicate of this data. Try it.