]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
More radsniff errors
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 18 Apr 2022 23:05:15 +0000 (18:05 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Mon, 18 Apr 2022 23:05:15 +0000 (18:05 -0500)
src/bin/radsniff.c

index 548ef4573f65a898db105b5f049bda441c9ac816..eda92f72abea993477735406356de0d95b122bb7 100644 (file)
@@ -2521,11 +2521,13 @@ int main(int argc, char *argv[])
 
        /* Can't read from both... */
        if (conf->from_file && conf->from_dev) {
+               ERROR("Can't read from both a file and a device");
                usage(64);
        }
 
        /* Can't set stats export mode if we're not writing stats */
        if ((conf->stats.out == RS_STATS_OUT_STDIO_CSV) && !conf->stats.interval) {
+               ERROR("CSV output requires a statistics interval (-W)");
                usage(64);
        }