Return-Path: MIME-Version: 1.0 In-Reply-To: <20100104205827.GB9585@lunn.ch> References: <201001042344.02273.lindner_marek@yahoo.de> <591bc9931001041223m13d96837o4d4f95afa08e42e2@mail.gmail.com> <20100104205827.GB9585@lunn.ch> Date: Tue, 5 Jan 2010 10:20:29 +1300 Message-ID: <591bc9931001041320m309a40dcxe7da013683f97d2@mail.gmail.com> From: Donald Gordon Content-Type: multipart/alternative; boundary=00504502d814705597047c5d4a97 Subject: Re: [B.A.T.M.A.N.] batman-adv gateway support Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking --00504502d814705597047c5d4a97 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jan 5, 2010 at 9:58 AM, Andrew Lunn wrote: > > BPF for outgoing packets? Different. I've only ever seen it used for > filtering incoming packets. ARP requests for *.*.*.1? I don't get > that. There should only be one host in the subnet which matches > *.*.*.1/24, so its going to reply anyway. What are you trying to > achieve here? > BPF because it's already in the kernel and has a rule language. Rules to match "all DHCP packets, and IPv6 router solicitations" are easy to write, and people who want to do something different/wierd don't need to rebuild their kernels. If it makes any more sense, substitute *.*.*.1 for "something matching the IPs I use for gateways". Aim: make it harder for people to configure their PCs to respond to those ARPs and break the network. Although for a mobile node whose DHCP lease hasn't yet expired I can see that causing problems. But if it's just a BPF filter then you can experiment with rules like these fairly easily. donald --00504502d814705597047c5d4a97 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Jan 5, 2010 at 9:58 AM, Andrew Lunn <andrew@lunn.ch><= /span> wrote:

BPF for outgoing packets? Different. I've only ever seen it used = for
filtering incoming packets. ARP requests for *.*.*.1? I don't get
that. There should only be one host in the subnet which matches
*.*.*.1/24, so its going to reply anyway. What are you trying to
achieve here?

BPF because it's already in the = kernel and has a rule language.=A0 Rules to match "all DHCP packets, a= nd IPv6 router solicitations" are easy to write, and people who want t= o do something different/wierd don't need to rebuild their kernels.

If it makes any more sense, substitute *.*.*.1 for "something matc= hing the IPs I use for gateways".=A0 Aim: make it harder for people to= configure their PCs to respond to those ARPs and break the network.=A0 Alt= hough for a mobile node whose DHCP lease hasn't yet expired I can see t= hat causing problems.=A0 But if it's just a BPF filter then you can exp= eriment with rules like these fairly easily.
=A0
donald
--00504502d814705597047c5d4a97--