Re: Blocking forwarding of packets in WLAN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Claudio Lavecchia <Claudio.Lavecchia@xxxxxxxxxx> [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, <your iptables command>);
    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 |
<http://www.lpr.ch> | IP? -> <http://www.rawip.org> |
eMail Style Guide: <http://www.rawip.org/style.html>|


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux