"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "darkstat.c" between
darkstat-3.0.719.tar.gz and darkstat-3.0.721.tar.gz

About: darkstat is a network traffic analyzer (reports over HTTP).

darkstat.c  (darkstat-3.0.719):darkstat.c  (darkstat-3.0.721)
skipping to change at line 79 skipping to change at line 79
} }
static int opt_iface_seen = 0; static int opt_iface_seen = 0;
static void cb_interface(const char *arg) { static void cb_interface(const char *arg) {
cap_add_ifname(arg); cap_add_ifname(arg);
opt_iface_seen = 1; opt_iface_seen = 1;
} }
static void cb_filter(const char *arg) { cap_add_filter(arg); } static void cb_filter(const char *arg) { cap_add_filter(arg); }
const char *opt_capfile = NULL; static const char *opt_capfile = NULL;
static void cb_capfile(const char *arg) { opt_capfile = arg; } static void cb_capfile(const char *arg) { opt_capfile = arg; }
int opt_want_snaplen = -1; int opt_want_snaplen = -1;
static void cb_snaplen(const char *arg) static void cb_snaplen(const char *arg)
{ opt_want_snaplen = (int)parsenum(arg, 0); } { opt_want_snaplen = (int)parsenum(arg, 0); }
int opt_want_pppoe = 0; int opt_want_pppoe = 0;
static void cb_pppoe(const char *arg _unused_) { opt_want_pppoe = 1; } static void cb_pppoe(const char *arg _unused_) { opt_want_pppoe = 1; }
int opt_want_syslog = 0; int opt_want_syslog = 0;
static void cb_syslog(const char *arg _unused_) { opt_want_syslog = 1; } static void cb_syslog(const char *arg _unused_) { opt_want_syslog = 1; }
int opt_want_verbose = 0; int opt_want_verbose = 0;
static void cb_verbose(const char *arg _unused_) { opt_want_verbose = 1; } static void cb_verbose(const char *arg _unused_) { opt_want_verbose = 1; }
int opt_want_daemonize = 1; static int opt_want_daemonize = 1;
static void cb_no_daemon(const char *arg _unused_) { opt_want_daemonize = 0; } static void cb_no_daemon(const char *arg _unused_) { opt_want_daemonize = 0; }
int opt_want_promisc = 1; static int opt_want_promisc = 1;
static void cb_no_promisc(const char *arg _unused_) { opt_want_promisc = 0; } static void cb_no_promisc(const char *arg _unused_) { opt_want_promisc = 0; }
int opt_want_dns = 1; static int opt_want_dns = 1;
static void cb_no_dns(const char *arg _unused_) { opt_want_dns = 0; } static void cb_no_dns(const char *arg _unused_) { opt_want_dns = 0; }
int opt_want_macs = 1; int opt_want_macs = 1;
static void cb_no_macs(const char *arg _unused_) { opt_want_macs = 0; } static void cb_no_macs(const char *arg _unused_) { opt_want_macs = 0; }
int opt_want_lastseen = 1; int opt_want_lastseen = 1;
static void cb_no_lastseen(const char *arg _unused_) { opt_want_lastseen = 0; } static void cb_no_lastseen(const char *arg _unused_) { opt_want_lastseen = 0; }
unsigned short opt_bindport = 667; static unsigned short opt_bindport = 667;
static void cb_port(const char *arg) static void cb_port(const char *arg)
{ opt_bindport = (unsigned short)parsenum(arg, 65536); } { opt_bindport = (unsigned short)parsenum(arg, 65536); }
static void cb_bindaddr(const char *arg) { http_add_bindaddr(arg); } static void cb_bindaddr(const char *arg) { http_add_bindaddr(arg); }
static int is_localnet_specified = 0; static int is_localnet_specified = 0;
static void cb_local(const char *arg) static void cb_local(const char *arg)
{ {
acct_init_localnet(arg); acct_init_localnet(arg);
is_localnet_specified = 1; is_localnet_specified = 1;
} }
int opt_want_local_only = 0; int opt_want_local_only = 0;
static void cb_local_only(const char *arg _unused_) static void cb_local_only(const char *arg _unused_)
{ opt_want_local_only = 1; } { opt_want_local_only = 1; }
const char *opt_chroot_dir = NULL; static const char *opt_chroot_dir = NULL;
static void cb_chroot(const char *arg) { opt_chroot_dir = arg; } static void cb_chroot(const char *arg) { opt_chroot_dir = arg; }
const char *opt_base = NULL; static const char *opt_base = NULL;
static void cb_base(const char *arg) { opt_base = arg; } static void cb_base(const char *arg) { opt_base = arg; }
const char *opt_privdrop_user = NULL; static const char *opt_privdrop_user = NULL;
static void cb_user(const char *arg) { opt_privdrop_user = arg; } static void cb_user(const char *arg) { opt_privdrop_user = arg; }
const char *opt_daylog_fn = NULL; static const char *opt_daylog_fn = NULL;
static void cb_daylog(const char *arg) { opt_daylog_fn = arg; } static void cb_daylog(const char *arg) { opt_daylog_fn = arg; }
const char *import_fn = NULL; static const char *import_fn = NULL;
static void cb_import(const char *arg) { import_fn = arg; } static void cb_import(const char *arg) { import_fn = arg; }
const char *export_fn = NULL; static const char *export_fn = NULL;
static void cb_export(const char *arg) { export_fn = arg; } static void cb_export(const char *arg) { export_fn = arg; }
static const char *pid_fn = NULL; static const char *pid_fn = NULL;
static void cb_pidfile(const char *arg) { pid_fn = arg; } static void cb_pidfile(const char *arg) { pid_fn = arg; }
unsigned int opt_hosts_max = 1000; unsigned int opt_hosts_max = 1000;
static void cb_hosts_max(const char *arg) static void cb_hosts_max(const char *arg)
{ opt_hosts_max = parsenum(arg, 0); } { opt_hosts_max = parsenum(arg, 0); }
unsigned int opt_hosts_keep = 500; unsigned int opt_hosts_keep = 500;
skipping to change at line 176 skipping to change at line 176
{ opt_highest_port = parsenum(arg, 65535); } { opt_highest_port = parsenum(arg, 65535); }
int opt_wait_secs = -1; int opt_wait_secs = -1;
static void cb_wait_secs(const char *arg) static void cb_wait_secs(const char *arg)
{ opt_wait_secs = (int)parsenum(arg, 0); } { opt_wait_secs = (int)parsenum(arg, 0); }
int opt_want_hexdump = 0; int opt_want_hexdump = 0;
static void cb_hexdump(const char *arg _unused_) static void cb_hexdump(const char *arg _unused_)
{ opt_want_hexdump = 1; } { opt_want_hexdump = 1; }
int opt_want_help = 0; static int opt_want_help = 0;
static void cb_help(const char *arg _unused_) static void cb_help(const char *arg _unused_)
{ opt_want_help = 1; } { opt_want_help = 1; }
static void cb_version(const char *arg _unused_) static void cb_version(const char *arg _unused_)
{ opt_want_help = -1; } { opt_want_help = -1; }
/* --- */ /* --- */
struct cmdline_arg { struct cmdline_arg {
const char *name, *arg_name; /* NULL arg_name means unary */ const char *name, *arg_name; /* NULL arg_name means unary */
void (*callback)(const char *arg); void (*callback)(const char *arg);
 End of changes. 12 change blocks. 
12 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)