summaryrefslogtreecommitdiff
path: root/ifpps.c
diff options
context:
space:
mode:
Diffstat (limited to 'ifpps.c')
-rw-r--r--ifpps.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/ifpps.c b/ifpps.c
index 77c63a6..7dc8e68 100644
--- a/ifpps.c
+++ b/ifpps.c
@@ -93,6 +93,14 @@ static const struct option long_options[] = {
{NULL, 0, NULL, 0}
};
+static const char *copyright = "Please report bugs to <bugs@netsniff-ng.org>\n"
+ "Copyright (C) 2009-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n"
+ "Swiss federal institute of technology (ETH Zurich)\n"
+ "Copyright (C) 2013 Tobias Klauser <tklauser@distanz.ch>\n"
+ "License: GNU GPL version 2.0\n"
+ "This is free software: you are free to change and redistribute it.\n"
+ "There is NO WARRANTY, to the extent permitted by law.\n";
+
static void signal_handler(int number)
{
switch (number) {
@@ -137,14 +145,8 @@ static void __noreturn help(void)
" ifpps -lpcd wlan0 > plot.dat\n\n"
"Note:\n"
" On 10G cards, RX/TX statistics are usually accumulated each > 1sec.\n"
- " Thus, in those situations, it's good to use a -t of 10sec.\n\n"
- "Please report bugs to <bugs@netsniff-ng.org>\n"
- "Copyright (C) 2009-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n"
- "Swiss federal institute of technology (ETH Zurich)\n"
- "Copyright (C) 2013 Tobias Klauser <tklauser@distanz.ch>\n"
- "License: GNU GPL version 2.0\n"
- "This is free software: you are free to change and redistribute it.\n"
- "There is NO WARRANTY, to the extent permitted by law.\n");
+ " Thus, in those situations, it's good to use a -t of 10sec.\n\n");
+ puts(copyright);
die();
}
@@ -152,14 +154,8 @@ static void __noreturn version(void)
{
printf("\nifpps %s, Git id: %s\n", VERSION_LONG, GITVERSION);
puts("top-like kernel networking and system statistics\n"
- "http://www.netsniff-ng.org\n\n"
- "Please report bugs to <bugs@netsniff-ng.org>\n"
- "Copyright (C) 2009-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>\n"
- "Swiss federal institute of technology (ETH Zurich)\n"
- "Copyright (C) 2013 Tobias Klauser <tklauser@distanz.ch>\n"
- "License: GNU GPL version 2.0\n"
- "This is free software: you are free to change and redistribute it.\n"
- "There is NO WARRANTY, to the extent permitted by law.\n");
+ "http://www.netsniff-ng.org\n\n");
+ puts(copyright);
die();
}