diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 10:11:55 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 10:11:55 +0200 |
commit | 78a23a4d5ab27c8af26c0e232c099a0c16907649 (patch) | |
tree | 7abfec64bdb1c639faca541512e95b6f3bfa9aad /netsniff-ng.c | |
parent | 22e4551cb007312ef808669aa70cad10a7657136 (diff) |
xio: add ioexact operations
Break this out so that we only need to have sigint non-static where
it is really needed.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r-- | netsniff-ng.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c index ed3d659..40580b8 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -56,8 +56,7 @@ struct ctx { uid_t uid; gid_t gid; uint32_t link_type, magic; }; -volatile sig_atomic_t sigint = 0; - +static volatile sig_atomic_t sigint = 0; static volatile bool next_dump = false; static const char *short_options = "d:i:o:rf:MJt:S:k:n:b:HQmcsqXlvhF:RGAP:Vu:g:T:DB"; @@ -100,9 +99,7 @@ static const struct option long_options[] = { }; static int tx_sock; - static struct itimerval itimer; - static unsigned long frame_count_max = 0, interval = TX_KERNEL_PULL_INT; #define __pcap_io pcap_ops[ctx->pcap] |