From: Lukas Ruf Subject: Re: Blocking forwarding of packets in WLAN Date: Thu, 14 Oct 2004 15:58:08 +0200 Sender: netfilter-bounces@lists.netfilter.org Message-ID: <20041014135808.GB824@tik.ee.ethz.ch> References: <000501c4b1f4$89506360$db0a11ac@eurecom.fr> Reply-To: PLEASE REPLY TO THE LIST Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <000501c4b1f4$89506360$db0a11ac@eurecom.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org > Claudio Lavecchia [2004-10-14 15:51]: > > > void block_forwarding(char * MAC_address); > > Is this feasible someway using iptables? Can anyone give me a > precise hint on how to do that? I would be truly grateful if someone > could help me. > what you could do: char *tmp_string = (char *)calloc(length, sizeof(char)); strcpy(tmp_string, ); strcat(tmp_string, MAC_address); system(tmp_string); free(tmp_string); of course million other ways exist to achieve this goal -- that's an easy solution.... wbr, Lukas -- Lukas Ruf | Wanna know anything about raw | | IP? -> | eMail Style Guide: |