From 78a23a4d5ab27c8af26c0e232c099a0c16907649 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Tue, 4 Jun 2013 10:11:55 +0200 Subject: 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 --- netsniff-ng.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'netsniff-ng.c') 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] -- cgit v1.2.3-54-g00ecf