From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Sven Eckelmann Subject: Re: [PATCH v2] batman-adv: Introduce no noflood mark Date: Tue, 07 May 2019 17:45:04 +0200 Message-ID: <8751913.vGonOqSknk@bentobox> In-Reply-To: <20190507151723.GB1493@otheros> References: <20190507072821.8147-1-linus.luessing@c0d3.blue> <1895475.8kFdyZb9vl@bentobox> <20190507151723.GB1493@otheros> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8953029.KQddNnn0Kf"; micalg="pgp-sha512"; protocol="application/pgp-signature" List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: b.a.t.m.a.n@lists.open-mesh.org Cc: Linus =?ISO-8859-1?Q?L=FCssing?= , Marek Lindner --nextPart8953029.KQddNnn0Kf Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" On Tuesday, 7 May 2019 17:17:23 CEST Linus L=FCssing wrote: > Ah, that's an interesting idea. So basically filtering on the > hardif instead of in batman-adv via some custom compiled BPF > filters. So basically similar to writing a small program like the > gluon-radv-filterd with a BPF_* parser? >=20 > https://github.com/freifunk-gluon/gluon/blob/master/package/gluon-radv-fi= lterd/src/gluon-radv-filterd.c#L223 Yes, but you don't have to write the stuff with these intrinsics and cBPF. This was done in gluon-radv-filterd only to avoid extra dependencies to=20 build the program for this really minimal piece of code. And I didn't had much benefits from using eBPF at the moment [1]. You can just write it in C and use clang to create (e)BPF bytecode as=20 described in http://man7.org/linux/man-pages/man8/tc-bpf.8.html Kind regards, Sven [1] https://github.com/freifunk-gluon/gluon/pull/838#issuecomment-355547594 --nextPart8953029.KQddNnn0Kf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAlzRqAAACgkQXYcKB8Em e0ZdgQ/+I78xbh5yNkM5edrJuJNyYNbuDd9tLyTqc7+nyllD8vZ/QcOJNsuk+Y7e uJcPD2ZgWFOnCHOyIAZBPPBLEhHS0+0UrXNJjWN3jH+dZCaKSJXI63upJn+CXd4t oOVxRnAi/psvqqUxe2KyiAJ3nRZKtcPOTAUrkvhkRylfGCSzlk7hZJ/xUOnxwENS WuORcowh3b/wm9q2lvOk81f0EeHdhfmkXf4wE6RCPx/rovgZKiNUOpSeZVEyuDR+ S6ox61ULqVwVgRu9p3PAoXNUiLwJv1UiQkeL8DxCwCVX2WA+OuYoFNF4SFyh5VoU bV3TBHiSxQj2ljdlJX4TaOna/d8CwuBr1W24JebA3ZKjbgRmbuZECbyRJ9hkHwjr lfFF3zGRUjrW9BcymprUk+cR4Dw86YvPbcnZwcyD7GzeSK1Y1L3RYyFakhY8Sbaf YQ1CXZwZ4rf2a6w0dytJHj0+44YGcIJ4D7kOgjDOrzNvR+phYJ9WREJzUFObGkXv JUJ2Fx0zS4vwPYhX9ysRLqueUxs+FS/CBEHiV78PLoMQNSXRMcVTZt5cGa4IvOwi qmIruktyqb9zjaOHjKtJweAlgD0WJk8G77RFJ1dPBcE8U5T7mPlT8+E4dW7KFThS J4tXkoSqiim840AVZriPB1UkRprYVTrrLML/b1ChPZ/w0w50XrU= =WI+W -----END PGP SIGNATURE----- --nextPart8953029.KQddNnn0Kf--