From patchwork Thu Jun 21 15:19:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Alin_N=C4=83stac?= X-Patchwork-Id: 932784 X-Patchwork-Delegate: blogic@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fyprT4E2"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="mCZKsW0M"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="u1FiWr5o"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BQPW1B6rz9s2L for ; Fri, 22 Jun 2018 01:20:31 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=JlQFskzA8RLx6is7xCU5xIpjcdFmJP5I7WMX+W+VwLg=; b=fyprT4E2bLSYDq iQQ3Dr6uspatDKOwzgZ7ecsaokrmIVSo9znEIgXkS/R31laj6riJyIizS70HxuWEtXyD8MfkodrJk ZqN7WUBHnqe2jiuSpYvUstUyNvigGFbWNklZO2fGnIDJOkGsQxYNcbQct1N3KF+ONNyTbtiL766FP TNqlGTmfchwWSH3/QU5dVNybJ8I7jQEnNcYjZ1yqFo/6/c1bHLRf7ELZSPa8L2Bel1NK+xV3IQcnE bE02sd2QFMxVQVgwvhrRZaye58D8DPIGtyU6CeNE8pjIYwePOVtq7rvsjYH2RmYXNbqcwdAle8/ka vMat570h1i5RWzE12fVw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW1Nq-00022a-8M; Thu, 21 Jun 2018 15:20:26 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW1NL-0000uR-92 for openwrt-devel@bombadil.infradead.org; Thu, 21 Jun 2018 15:19:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:To:From:Sender: Reply-To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BMWpAuNNj5hDtHDorYJ1sNni6WnNHhOPl8ppnTVa9es=; b=mCZKsW0MqQTRvZFkrMjAIunI2J 6lygKjE5GCBuF7X5SKsJN1/FQoY7fAs2HDvR5MPub6+UIVtejvr/5iUpX0Cy/TofNE9kjWjXywBSx KhhMh+sfJN1V+f/0BeRN1I3YsZO5A3ngNkBCOqqlOU22bdksG/9alYzmK13+hAxylQmuuSCIj9rPE BDDfCyGWnywdtT7PFa/N9Jw+cS1/U7Biz1chcABQ9kFqA+ezFQNuh/MmK01BuL306RaenJiRrQ4P0 wSEMFEjKhOFoZ3fC8z3qW9Sg1fgogXvBqwZjyakQEbxSp9BXK3R9SpsRhjY00DNT09FCV229/sZPn EVwmK8pw==; Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW1NI-000883-HF for openwrt-devel@lists.openwrt.org; Thu, 21 Jun 2018 15:19:53 +0000 Received: by mail-wm0-x243.google.com with SMTP id j15-v6so6933024wme.0 for ; Thu, 21 Jun 2018 08:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=BMWpAuNNj5hDtHDorYJ1sNni6WnNHhOPl8ppnTVa9es=; b=u1FiWr5oj3tqc3wQUqdc48P65KmSIf0V1fdCxlls5Ek50UA41Cv8VGlp02jN//cy31 tEU5qtoNepCRQ+i5AMp7KgDxu8woYrpWSYdqYV8EDO4iEawA0nK2eBZc5nmbqWySKuWq npo11Yl6lYisji+1lZmYpHEVmsLgnLSH3sMXo32tHClBc8m9gctjh80uTXKDeIJ7k5XM n5cvMHz//pSdWxY5zFes8KGyVzPJyr4/CX009bnhl3pHtx24pR1gPLAkKC1S4pRh74cW +xu8pULh+eifa/GUTrfEDQUS/JMfncwiLU70rFYJcKa1TgZYMeTq5Mppct4ZqA7QwMzK 9wnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=BMWpAuNNj5hDtHDorYJ1sNni6WnNHhOPl8ppnTVa9es=; b=pLrV9gawnhygXXwSdMRv06jtViwUVMsaKFsgKYZkJ1DTtrHOeE80qqfdkZr7+dlmB4 BRyME7b1AcVEkUVcFeCvhFFJwh2mhHGxJt41aI5PsKNsTYvsrhPMCZ+AD13+YvUUT0YE BKMO/yZvUJpokeZwPyIB0sjsI9ZEhbZk0mhOR5c/SAFhWrshyK8S6rwq8gdwwUSm1zOF dSMdsu65Br17uQEtn351HHlTquyafRcAEvwqsTFoOmj8maVtvH15kZ65ltgIoSGYawyu 7TAlpjwPryrjWWxzVSzK/5sf5KJT/81xuTEZIwPD8AROnAvzX0lHabeh3ol04XbHu8tH 5cyg== X-Gm-Message-State: APt69E0L77b5naJDJxMfsliYMgcgGzweLooAi8cSDm7vLdY/eykgF6Gx 7dmVNgdI/0O3jY6uETaTz6xlDw== X-Google-Smtp-Source: ADUXVKIzSkKJHlA7btbM9i+UhJfRlxePo6jZHyt1vWV0WlPSrvnhRVwOZeQNlUoLj/9OxM85EYe3gA== X-Received: by 2002:a1c:2348:: with SMTP id j69-v6mr5705000wmj.112.1529594378056; Thu, 21 Jun 2018 08:19:38 -0700 (PDT) Received: from cplx1037.edegem.eu.thmulti.com ([2001:4158:f012:3ae0:2a10:7bff:fec5:6f08]) by smtp.gmail.com with ESMTPSA id r3-v6sm5121482wrj.78.2018.06.21.08.19.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jun 2018 08:19:37 -0700 (PDT) From: Alin Nastac To: openwrt-devel@lists.openwrt.org Date: Thu, 21 Jun 2018 17:19:31 +0200 Message-Id: <1529594371-11805-1-git-send-email-alin.nastac@gmail.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180621_111952_586815_086F092D X-CRM114-Status: GOOD ( 10.13 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on merlin.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c09:0:0:0:243 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (alin.nastac[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [OpenWrt-Devel] [PATCH] netfilter: add bpf match support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Add xt_bpf modules to {kmod-ipt,iptables-mod}-filter. Match using Linux Socket Filter. Expects a BPF program in decimal format. This is the format generated by the nfbpf_compile utility. Signed-off-by: Alin Nastac --- include/netfilter.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/include/netfilter.mk b/include/netfilter.mk index 5d532ce..510aa18 100644 --- a/include/netfilter.mk +++ b/include/netfilter.mk @@ -106,6 +106,7 @@ $(eval $(call nf_add,IPT_PHYSDEV,CONFIG_NETFILTER_XT_MATCH_PHYSDEV, $(P_XT)xt_ph # filter $(eval $(call nf_add,IPT_FILTER,CONFIG_NETFILTER_XT_MATCH_STRING, $(P_XT)xt_string)) +$(eval $(call nf_add,IPT_FILTER,CONFIG_NETFILTER_XT_MATCH_BPF, $(P_XT)xt_bpf)) # ipopt