Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp462541lqi; Thu, 7 Mar 2024 02:28:10 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUNOqCCTQwC6guMmZjzvBmCAPXF9VfeCAo2ZCNXZ/GsjQy/GQIJxFJpwInT1ovujTbfKfVzKfdGoRsoAwj991gcMTQdDNl4oBZES2rR9w== X-Google-Smtp-Source: AGHT+IE/TgzJ13FnlaawqHVqF58hkoqjGUEnVm2Im9KfD91Mt9qAyRUzXzORwgTEcSKSWKLklr2s X-Received: by 2002:a50:934d:0:b0:566:6c6e:385c with SMTP id n13-20020a50934d000000b005666c6e385cmr13767701eda.34.1709807290447; Thu, 07 Mar 2024 02:28:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709807290; cv=pass; d=google.com; s=arc-20160816; b=NeyHJbRuPVYyazaAWLZL4M1JYRqEu+qK+AqrycAj0J7UF1O5vhvJYQcIJ6A8F+64qz U/HtzhQ8ZzxrHwEllDCTxuDGHCGPY8gU53BDN0wac0B5vhwGvjuFMtvvlfgrNsUWgjkG Bd5dRWUyWlrW+RbsQ/IJrEev6JPzX0Ot1MSu1Uppr29cGroiCMkFJTN1quQylMtViOrQ k+CbVLD2LS93fYb7RYj5E4Q42WzKQfHiOLasHbqq4+WNBFX823QdIXWMJd8acjkDQxG8 90OhXfH/77qD/IKYhAKky2bZ8TxcB+NobuoE4+kPTYb5UgVpFnznoUb5NOWTcrkEWXKD /Xhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=RwjkeoQmVaN91w56Z+JLE95IZ7Bh98KSuQfvZhawA+E=; fh=V2NzVzPqznQpBum2GV+3u6WutxH9uw0xd6506ze4ERw=; b=Md/QCQlWli0SnRXXzHlxK2yfXltSBcAIoEqYr+lqY77JZ5JDGpBeohUD8sApA5hh9o PW5hmLfQPedPXBMDSPbw0PyeeVLV8S0Olq7WSwsAdH78JMLZ87vF6F/VKRNJhYLul8oY 9ZRb3PTD2P6H+24HKb/4zfpkH2hIJqtRsOqeWZ22tnK0ZY7RJQRUE0J2qizxdzlnLIgt v+GZlHs9UYVcOUB+m5KK9PsgBUtrJzt2MdqXQey9wsR2rItU86QTUszsZr1/Np9B7HgC THLmLAx+fR8KRKzcQmi/Aj/nlO/YtR3hz1Iy5l2ssuxFPgKGDNgBC0SNf0hC9qJxtCVn xLOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=cambridgegreys.com); spf=pass (google.com: domain of linux-kernel+bounces-95330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95330-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l19-20020a056402125300b00565bb493d75si6731554edw.363.2024.03.07.02.28.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 02:28:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=cambridgegreys.com); spf=pass (google.com: domain of linux-kernel+bounces-95330-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95330-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 30FCF1F22E50 for ; Thu, 7 Mar 2024 10:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C04C8527A; Thu, 7 Mar 2024 10:28:04 +0000 (UTC) Received: from www.kot-begemot.co.uk (ns1.kot-begemot.co.uk [217.160.28.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92B8982880; Thu, 7 Mar 2024 10:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.160.28.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709807284; cv=none; b=hMBkQmgSG0+vi1WsTCyKWlj5G1Y90nBrl8cF6xkLZNCjhabSJWk29Ssp1XBXVUEGEaCirgqUL+UFF8NnZTcszGs+inOlN9nqBeaJpJkDf7IzbfUweNQ8thkqkkLblR21rP/MNjZeIxdJDgc5XSVPGSWcn8uoj3/OoQb7BTVgXeo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709807284; c=relaxed/simple; bh=OoAeYuV38c9rz7v48CPlvcr99YsLrun7AvNytHK5PNs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=laFHT/QFM0QP9uOE0FRthwBODTkvTcGaauBa4ooCnsmn/b1JCb/m+JsQkdWJmvs/YTlKy/8iGsGS743Dw7eY3XhSrNebUgM5wPLrxzoJjJefqN8ax+FL5aR2yUuEbtIqv9dkv26uh+3TE5ADr6lTF8xEryC/aajluSjEjEQDx1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cambridgegreys.com; spf=pass smtp.mailfrom=cambridgegreys.com; arc=none smtp.client-ip=217.160.28.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cambridgegreys.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cambridgegreys.com Received: from [192.168.17.6] (helo=jain.kot-begemot.co.uk) by www.kot-begemot.co.uk with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1riAyi-00DtX0-4e; Thu, 07 Mar 2024 10:27:56 +0000 Received: from jain.kot-begemot.co.uk ([192.168.3.3]) by jain.kot-begemot.co.uk with esmtp (Exim 4.96) (envelope-from ) id 1riAye-002hiC-1k; Thu, 07 Mar 2024 10:27:55 +0000 Message-ID: <2cc222b7-618c-46a9-b78b-eb099d0f4be7@cambridgegreys.com> Date: Thu, 7 Mar 2024 10:27:52 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pcap-dbus.o:undefined reference to `dbus_message_demarshal' Content-Language: en-US To: Johannes Berg , Waqar Hameed , Ingo Molnar Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, kernel@axis.com, Richard Weinberger , linux-um@lists.infradead.org References: <202403052336.y6DkUd8a-lkp@intel.com> <87cfca1e-3f53-4935-a274-0920bce86373@cambridgegreys.com> <463be980baf66b967031e3294c3b9745b07aa058.camel@sipsolutions.net> From: Anton Ivanov In-Reply-To: <463be980baf66b967031e3294c3b9745b07aa058.camel@sipsolutions.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 X-Spam-Score: -1.0 X-Clacks-Overhead: GNU Terry Pratchett On 07/03/2024 10:03, Johannes Berg wrote: > On Thu, 2024-03-07 at 09:54 +0000, Anton Ivanov wrote: >> >> PCAP is not feasible to incorporate into the build system at present. >> It has grown all kinds of warts over the years and brings a lot of dependencies. >> IMHO we should remove it from the tree. It has reached a point where it cannot >> be built on a modern system. > > I suppose it might be possible to call pcap-config? But agree that it > doesn't seem really worth investing in. > >> The users who need the same functionality can produce a bpf filter using tcpdump >> and load it as "firmware" into the vector/raw driver. >> >> I am working on a pure python bpf compiler which takes the same syntax as PCAP. >> It is showing signs of life and it can do some of the simpler use cases. Once >> that is ready, it should be possible to use that instead of pcap/tcpdump. > > How's that required to be formatted and loaded? tcpdump itself can also > dump the filter in BPF format, with -d/-ddd (-dd is a C representation, > so probably not useful). Perhaps we could even automatically call > 'tcpdump' at runtime? That is one option. As far as common use cases are concerned, at present you can: tcpdump -ddd, convert it to raw binary (3 liner in a language of choice) and pass that to vecX as a bpffile= It may be worth it to make vecX also take the -ddd format directly by adding "format" options to bpffile. I'd rather do that instead of invoking tcpdump out of a device open. The -ddd notation (+/- a comma here and there) is standard - it is also used by iptables, etc. It can used by other code generators as well. > > johannes > -- Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/