root/trunk/wifidog/src/fw.counters @ 9

Revision 9, 1.5 KB (checked in by benoitg, 9 years ago)

2004-03-08 Benoit Gr�goire <bock@…>

  • Initial CVS import. Integrate a standrad GNU build system and Doxygen to the build process. Add Doxygen and CVS headers, .cvsignores, etc. Note that the imported code is Philippe April (papril777 at yahoo.com)'s work. Tell me if I forgot anything. Please note that the paths in the src/fw* scripts are still hardcoded. Don't forget to update the ChangeLog file every commit and add doxygen comments to your code. Happy hacking.
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#!/bin/sh
2
3#*******************************************************************\
4# This program is free software; you can redistribute it and/or    *
5# modify it under the terms of the GNU General Public License as   *
6# published by the Free Software Foundation; either version 2 of   *
7# the License, or (at your option) any later version.              *
8#                                                                  *
9# This program is distributed in the hope that it will be useful,  *
10# but WITHOUT ANY WARRANTY; without even the implied warranty of   *
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the    *
12# GNU General Public License for more details.                     *
13#                                                                  *
14# You should have received a copy of the GNU General Public License*
15# along with this program; if not, contact:                        *
16#                                                                  *
17# Free Software Foundation           Voice:  +1-617-542-5942       *
18# 59 Temple Place - Suite 330        Fax:    +1-617-542-2652       *
19# Boston, MA  02111-1307,  USA       gnu@gnu.org                   *
20#                                                                  *
21#*******************************************************************/
22
23# $Header$
24
25#    @author Copyright (C) 2004 Philippe April <papril777@yahoo.com>
26
27IPTABLES=/sbin/iptables
28
29# Returns BYTES, IP, MAC, PROFILE
30${IPTABLES} -v -x -t mangle -L wifidog_mark | grep MAC | sed 's/0x//g' | awk '{print $2 " " $8 " " $11 " " $14}'
31
Note: See TracBrowser for help on using the browser.