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 4CD801A8FAC7 for ; Fri, 31 May 2024 05:50:11 -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 BF62E2196E8; Fri, 31 May 2024 05:50:11 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1717149011; b=lw0v6cBeTxJaDAshDHWPzYBUmnfIDDivWQojmLRiE8YtM3H087 59b0H1FMad2NfWwUA9xMiLgUEuK2eYv/qggDvCI+MtIaucWu4PuoxQ7WinOa/kAW GNuIJ93O6HNhJFXdbuW8hubtjl8YWSEQQfFB5AQwTGkuz8rWTR+Rp/gU1cNAlSVk blQ8fQP9inY971JhkdMzkSUth7O3Yo4qFWcvdNFjH3zILVD3VpOxg1vUE58u8Bxz nNJaiVvATsaWJINWaED7NbpQTl8lBgZzBtq14G9cub4PGRWdwh2Q38HNxQ0Weaai bVFOsZu6OLmxubrovTCjHWRfmwR/1Q//iMog== 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=1717149011; bh=/mg1dtPcHqqfg9hnVHegxFwyUsc+MGio1YpHqSiblDQ=; b=Kllc6ZglyCU4 NqQW/Mkhdvf0PEDxp3yIHg/rx0Slu3KdgSMYYza4DFkazw0rdGopJshD10WBx/79 QWX/Rt5cGaC7S+sGajcNH1rPDzZWDphUGmH9+Qljzk1RCM5Ia7XVZ5urPov5nXaS MWhrUIz+ilbEm+kZR18nT2JHBe0A7ievYibWsNEDcGrJN1sm/OWHl4wGGcbHxWRf yfvapEGD2aJrth6NnX3EY3Wjn605VwqCm70QMvaM5LxlseBlGePwV5re66+MeGoL QDXBHczSRPqp86mw7O6izuvkmKmpv9Jfra86WvhSSCNz5VMAfNC33A3jE6UPQZeW kZTvFPF4Hg== 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: gggruggvucftvghtrhhoucdtuddrgedvledrvdekiedgvddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecu hfhrohhmpeforghrtggvlhcuvfgvlhhkrgcuoehmrghrtggvlhesthgvlhhkrgdrshhkqe enucggtffrrghtthgvrhhnpedvudeuteeiteeuveefudeigfetvddvgeegudeuteegieet hedutdelheduleduteenucffohhmrghinhepihhllhhumhhoshdrohhrghdpthgvlhhkrg drshhknecukfhppedukeehrddugedrvdefgedruddukeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepihhnvghtpedukeehrddugedrvdefgedruddukedphhgvlhhope htohhrthhughgrrdhtvghlkhgrrdhskhdpmhgrihhlfhhrohhmpeeomhgrrhgtvghlseht vghlkhgrrdhskheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepoeguvghvvghloh hpvghrsehlihhsthhsrdhilhhluhhmohhsrdhorhhgqe 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 05:50:09 -0400 (EDT) (envelope-from marcel@telka.sk) Received: (qmail 10042 invoked from network); 31 May 2024 09:50:08 -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 09:50:08 -0000 Date: Fri, 31 May 2024 11:50:07 +0200 From: Marcel Telka To: illumos-developer Subject: Re: [developer] Raw ethernet packets Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 30498a68-1f33-11ef-b022-5587018c7b06 On Fri, May 31, 2024 at 02:03:07AM -0700, Joshua M. Clulow via illumos-developer wrote: > On Fri, May 31, 2024, 01:43 Marcel Telka wrote: > > > I'm trying to send a raw ethernet packet from an userland application > > but all my attempts so far were unsuccessful. I basically tried two > > approaches (see below) but maybe both are in wrong direction. I'd > > appreciate some help, suggestion or pointer to an working example or > > application already doing that. > > > > You probably want to look at the DLPI, and in particular libdlpi: > > https://illumos.org/man/4P/dlpi > > There's a simple program in the gate that demonstrates sending an ethernet > frame using libdlpi interfaces: > > > https://src.illumos.org/source/xref/illumos-gate/usr/src/cmd/dlutil/dlsend.c?r=20768856 I'm not sure I'll be able/allowed to use libdlpi for this, but definitely this is valuable suggestion. Thank you. -- +-------------------------------------------+ | Marcel Telka e-mail: marcel@telka.sk | | homepage: http://telka.sk/ | +-------------------------------------------+