diff --git a/src/minisatip.c b/src/minisatip.c index 3ffa2fd3af..90540df60e 100644 --- a/src/minisatip.c +++ b/src/minisatip.c @@ -92,7 +92,6 @@ int rtsp, http, si, si1, ssdp1; #define HELP_OPT 'h' #define PLAYLIST_OPT 'p' #define ADAPTERS_OPT 'a' -#define MAC_OPT 'm' #define FOREGROUND_OPT 'f' #define DVRBUFFER_OPT 'b' #define APPBUFFER_OPT 'B' @@ -174,7 +173,6 @@ static const struct option long_options[] = { {"lnb", required_argument, NULL, LNB_OPT}, {"log", required_argument, NULL, LOG_OPT}, {"logfile", required_argument, NULL, LOGFILE_OPT}, - {"mac", required_argument, NULL, MAC_OPT}, {"multiplier", required_argument, NULL, SIGNALMULTIPLIER_OPT}, {"no-all-pids", no_argument, NULL, NO_PIDS_ALL_OPT}, {"priority", required_argument, NULL, PRIORITY_OPT}, @@ -308,7 +306,7 @@ void usage() { printf( "\n\t./%s [-[fgtzE]] [-a x:y:z] [-b X:Y] [-B X] [-H X:Y] [-d A:C-U ] [-D device_id] [-e X-Y,Z] [-i prio] \n\ -\t[-[uj] A1:S1-F1[-PIN]] [-m mac] [-P port] [-l module1[,module2]] [-v module1[,module2]] \n\t" +\t[-[uj] A1:S1-F1[-PIN]] [-P port] [-l module1[,module2]] [-v module1[,module2]] \n\t" #ifndef DISABLE_DVBAPI "[-o [~]oscam_host:dvbapi_port[,offset] " #endif @@ -411,9 +409,6 @@ Help\n\ \n\ For backward-compatibility reasons, linear LNB parameters may also be specified as *:5150-5150-5150 instead of *:5150-0-0\n\ \n\ -* -m --mac xx: simulate xx as local mac address, generates UUID based on mac\n\ - * eg: -m 001122334455 \n\ -\n\ * -M --multiplier: multiplies the strength and snr of the DVB adapter with the specified values\n\ * If the snr or the strength multipliers are set to 0, minisatip will override the value received from the adapter and will report always full signal 100%% \n\ * eg: -M 4-6:1.2-1.3 - multiplies the strength with 1.2 and the snr with 1.3 for adapter 4, 5 and 6\n\ @@ -724,10 +719,6 @@ void set_options(int argc, char *argv[]) { opts.daemon = 0; break; } - case MAC_OPT: { - safe_strncpy(opts.mac, optarg); - break; - } case RRTP_OPT: { opts.rrtp = optarg; break; diff --git a/src/opts.h b/src/opts.h index ac1d239581..e172997db4 100644 --- a/src/opts.h +++ b/src/opts.h @@ -24,7 +24,6 @@ typedef struct struct_opts { int run_user; int run_pid; char *disc_host; // discover host - char mac[13]; char uuid[UUID_STR_LEN]; unsigned int log, debug, slog, start_rtp, http_port; int timeout_sec;