Changeset 208


Ignore:
Timestamp:
01/14/13 23:58:46 (5 years ago)
Author:
xchaos
Message:

Major rewrite of leading comments

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r203 r208  
    66sbindir=$(prefix)/sbin 
    77sysconfdir=/etc 
    8 OBJECTS=parsehosts.o parselogs.o ipv4subnets.o json.o htmlandlogs.o prometheus.o 
     8OBJECTS=parsehosts.o parselogs.o ipv4subnets.o json.o htmlandlogs.o help.o prometheus.o 
    99HEADERS=cll1-0.6.2.h ipstruct.h 
    1010 
  • trunk/prometheus.c

    r207 r208  
    1   /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 
    2  /*     Prometheus QoS - you can "steal fire" from your ISP     */ 
    3 /*      "fair-per-IP" quality of service (QoS) utility          */ 
    4 /*      requires Linux 2.4.x or 2.6.x with HTB support          */ 
    5 /*      Copyright(C) 2005-2013 Michael Polak, Arachne Labs      */ 
    6 /*    iptables-restore support Copyright(C) 2007-2008 ludva     */ 
    7 /*  Credit: CZFree.Net,Martin Devera,Netdave,Aquarius,Gandalf  */ 
    8 /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */ 
    9  
    10 /* Modified by: xChaos, 20130107 
     1/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 
     2/* Prometheus QoS - you can "steal fire" from your ISP         */ 
     3/* "fair-per-IP" quality of service (QoS) utility              */ 
     4/* requires Linux 2.4.x or 2.6.x with HTB support              */ 
     5/* Copyright(C) 2005-2013 Michael Polak, Arachne Aerospace     */ 
     6/* iptables-restore support Copyright(C) 2007-2008 ludva       */ 
     7/* Credit: CZFree.Net,Martin Devera,Netdave,Aquarius,Gandalf  */ 
     8/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 
     9 
     10/* Modified by: xChaos, 20130114 
    1111                 ludva, 20080415 
    1212  
     
    2727   GNU General Public License is located in file COPYING */ 
    2828 
     29#include "cll1-0.6.2.h" 
     30#include "ipstruct.h" 
     31 
     32const char *version = "0.8.3-g"; 
     33 
     34/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 
     35/* Versions: 0.8.3 is development release, 0.8.4 will be "stable"  */ 
     36/* Official Trac URL: https://dev.arachne.cz/svn/prometheus        */ 
     37/* Official SVN URL: https://dev.arachne.cz/repos/prometheus       */ 
     38/* BTC donations account: 19rriLx8vR19wGefPaMhakqnCYNYwjLvxq       */ 
     39/* CZK donations account: 2900242944/2010 (transparent account)    */ 
     40/* Warning: unofficial Github mirror is not supported by author!  */ 
     41/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */ 
     42 
     43const char *stats_html_signature = "<span class=\"small\">Statistics generated by Prometheus QoS version %s<br />GPL+Copyright(C)2005-2013 Michael Polak, <a target=\"_blank\" href=\"http://www.arachne.cz/\">Arachne Labs</a></span>\n"; 
     44 
    2945#define STRLEN 512 
    3046#undef DEBUG 
    3147 
    32 #include "cll1-0.6.2.h" 
    33 #include "ipstruct.h" 
    34  
    35 const char *version = "0.8.3-g"; 
    36  
    37 /* Version numbers: 0.8.3 is development releases ("beta"), 0.8.4 will be "stable" */ 
    38 /* Debian(RPM) package versions/patchlevels: 0.7.9-2, 0.8.0-1, 0.8.0-2, etc. */ 
    39 /* C source code development versions ("beta"): 0.7.9-a, 0.8.1-b, etc. */ 
    40 /* C source code release versions: 0.8.0, 0.8.2, 0.8.4, etc. */ 
    41  
    42 const char *stats_html_signature = "<span class=\"small\">Statistics generated by Prometheus QoS version %s<br />GPL+Copyright(C)2005-2013 Michael Polak, <a target=\"_blank\" href=\"http://www.arachne.cz/\">Arachne Labs</a></span>\n"; 
    43  
    4448/* ======= Help screen is hopefuly self-documenting part of code :-) ======= */ 
    4549 
    46 void help(void) 
    47 { 
    48  puts("Command line switches:\n\ 
    49 \n\ 
    50 -d   Dry run (preview tc and iptables commands on stdout)\n\ 
    51 -r   Run (reset all statistics and start shaping - daily usage)\n\ 
    52 -p   just generate Preview of data transfer statistics and exit (after -r)\n\ 
    53 -s   start Shaping FUP limits (keeps data transfer stat like -p) (after -r)\n\ 
    54 -n   run Now (like -r delay - overrides qos-free-delay keyword, after boot)\n\ 
    55 -f   just Flush iptables and tc classes and exit (stop shaping, no QiS)\n\ 
    56 -9   emergency iptables flush (like -f, but dumps data transfer statistics)\n\ 
    57 \n\ 
    58 -c filename  force alternative /etc/prometheus/prometheus.conf filename\n\ 
    59 -h filename  force alternative /etc/hosts filename (overrides hosts keyword)\n\ 
    60 -l Mmm YYYY  generate HTML summary of Logged traffic (Mmm=Jan-Dec) (and exit)\n\ 
    61 -m           generate HTML summary of traffic for yesterday's Month (and exit)\n\ 
    62 -y           generate HTML summary of traffic for yesterday's Year (and exit)\n\ 
    63 -? --help    show this help scree (and exit)\n\ 
    64 -v --version show Version number of this utility (and exit)\n"); 
    65 } 
    6650 
    6751/* ======= All path names are defined here (for RPM patch) =======  */ 
     
    149133struct Keyword *keyword, *defaultkeyword=NULL, *keywords=NULL; 
    150134 
     135void help(void); 
     136/* implemented in help.c */ 
     137 
    151138void parse_ip_log(int argc, char **argv); 
    152139/* implemented in parselog.c */ 
     
    175162 
    176163/* ==== This is C<<1 stuff - learn C<<1 first! https://dev.arachne.cz/svn/cll1h ==== */ 
     164/* (except that this code uses obsolete, archaic version of this header file...)     */ 
    177165 
    178166struct Index 
Note: See TracChangeset for help on using the changeset viewer.