From: Baptiste Jonglez Date: Sat, 12 Jul 2014 05:50:52 +0000 (+0900) Subject: Print a meaningful error when -M is used but SO_MARK is not supported X-Git-Tag: v0.86~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F52%2Fhead;p=thirdparty%2Fmtr.git Print a meaningful error when -M is used but SO_MARK is not supported --- diff --git a/mtr.c b/mtr.c index cad2ca0..417caf6 100644 --- a/mtr.c +++ b/mtr.c @@ -491,6 +491,10 @@ void parse_arg (int argc, char **argv) exit(EXIT_FAILURE); } break; +#else + case 'M': + fprintf( stderr, "SO_MARK not enabled.\n" ); + break; #endif } }