From 62bfd8a7a983f45a8d065ff64e60b40ffa8eb453 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 6 Mar 2017 20:56:14 +0100 Subject: [PATCH] simtrace2-remsim: Document and add longopts for UDP forwarding --- host/simtrace2-remsim.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/host/simtrace2-remsim.c b/host/simtrace2-remsim.c index a6f013f4..ff5c234a 100644 --- a/host/simtrace2-remsim.c +++ b/host/simtrace2-remsim.c @@ -337,15 +337,19 @@ static void print_welcome(void) static void print_help(void) { - printf( "\t-i\t--gsmtap-ip\tA.B.C.D\n" - "\t-a\t--skip-atr\n" + printf( "\t-r\t--remote-udp-host HOST\n" + "\t-p\t--remote-udp-port PORT\n" "\t-h\t--help\n" + "\t-i\t--gsmtap-ip\tA.B.C.D\n" + "\t-a\t--skip-atr\n" "\t-k\t--keep-running\n" "\n" ); } static const struct option opts[] = { + { "remote-udp-host", 1, 0, 'r' }, + { "remote-udp-port", 1, 0, 'p' }, { "gsmtap-ip", 1, 0, 'i' }, { "skip-atr", 0, 0, 'a' }, { "help", 0, 0, 'h' },