From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=FeZ9+do7; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTP id 4CC0C5A004E for ; Thu, 12 Sep 2024 09:00:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726124411; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1vyQtasQY228740FJYc7slV8j/MMTAbzl9QFmXtqO3k=; b=FeZ9+do7oGk6B6rDwPkyAJwDdCPdKz3g6A3cZPNARABz5dq1sTwf8PK/rkbuB9w7uj0sP4 G0MBGEwPWSqwdxuXEDnbjnFPD9Bb+iifPB2MJLNxTi/yrUYmpRO/2PIjNMUIXYCwtFaaIz ak8nqJlaNjvYK163lClXNqeRq6gni3s= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-581-TtKsLIPQNXiLjm2kDXM7_A-1; Thu, 12 Sep 2024 03:00:09 -0400 X-MC-Unique: TtKsLIPQNXiLjm2kDXM7_A-1 Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-42cae209243so3467525e9.1 for ; Thu, 12 Sep 2024 00:00:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726124409; x=1726729209; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1vyQtasQY228740FJYc7slV8j/MMTAbzl9QFmXtqO3k=; b=KX0gu340i1B6NZAyrZnvh7oo35Rmcmm6/M0inoRsQNXvl+8Lo2uB3oMH6hwBc2hDMY PeqvOY/R8DQT418zvOYGPME69CL7a4n3cIECRKu+g17486DEf09CbZ0FMDUIQE2fzWGQ s8YgfA3QRQ23Hp5ua2IoSYjmylkC43Pii1hpDFlx5/+wfdi3J/9KhuOVGYuJKgmQNjqn oOSbu3KufAIWF+y97poTvQ7FA37WyfA+FWm4hVDTPXi676rNNBckKwQ920Gs4TY9YjBm chuQtKlVHnappYqY/74/6brgAaFH2mZxdzdk7SfqKefExWCSrO96lMwq0NLZpjYQ0kRd KsOg== X-Gm-Message-State: AOJu0YwYD/Jn+7CQEl8JOs3TljjCB08Ocy84Xhoc3gG/T3hliQ6PXA1g X2SVf0lEH8a82RD6VlPPxXbs/TuT4BbQnXnyzBNpWZlyRp85c3i0d6zSZwMBVXqtbiNEFC0tLOv +qLYj3OWnKghw/oJgsYMkIlMY4F26dVz+pGOJao3Ec3lUc7ZRvA== X-Received: by 2002:a05:600c:1c1f:b0:428:36e:be59 with SMTP id 5b1f17b1804b1-42cdb5318f3mr11145635e9.11.1726124408626; Thu, 12 Sep 2024 00:00:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdnEsQrUN/8UV0kLpfmig2dvkc+vNeOj4Vw0o4JJ2tWFi+rK/GQfXwgMAs22Sury4V1yQnJw== X-Received: by 2002:a05:600c:1c1f:b0:428:36e:be59 with SMTP id 5b1f17b1804b1-42cdb5318f3mr11145175e9.11.1726124407312; Thu, 12 Sep 2024 00:00:07 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [176.103.220.4]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42cb1cf939asm147464965e9.19.2024.09.12.00.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Sep 2024 00:00:06 -0700 (PDT) Date: Thu, 12 Sep 2024 09:00:04 +0200 From: Stefano Brivio To: DUO Labs Subject: Re: Porting to macOS Message-ID: <20240912090004.7166ff01@elisabeth> In-Reply-To: References: <20240910232652.29fddf4c@elisabeth> <20240910234105.5ef93691@elisabeth> <72b796ca-e8da-49f9-81d4-ed6ecd8caa83@gmail.com> <827aa40e-f3d6-4dc4-a1b7-3b05e6d97d90@gmail.com> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: JK57NNNJWVVXZJLGUVJTJC3YOI2CALSC X-Message-ID-Hash: JK57NNNJWVVXZJLGUVJTJC3YOI2CALSC X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 11 Sep 2024 22:19:15 -0400 DUO Labs wrote: > Looking at the archives, it looks like my message was never received (I'm > still figuring this mailing list stuff out). I'm pasting my message below: Non-subscribers' posts are held to avoid spam, I have to approve them manually. You can register to the list to avoid delays: https://lists.passt.top/postorius/lists/passt-dev.passt.top/ > Is AF_NETLINK required for passt usage, or is it only for pasta? It's more heavily needed for pasta because, there, we use it to directly configure the networking in the container (with --config-net), whereas with passt the configuration happens via DHCP/NDP/DHCPv6. With passt, we use netlink just to source addresses and routes from the host. I see two alternatives for Darwin: - use sysctls with NET_RT_DUMP / NET_RT_IFLIST2 / NET_RT_DUMP2 to fetch the same information. It's not clear to me if it needs root, though, or if there's a different way to fetch information without root - force the user to give a manual configuration (with options -a, -g at least) -- Stefano