aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gtp-tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gtp-tunnel.c')
-rw-r--r--tools/gtp-tunnel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gtp-tunnel.c b/tools/gtp-tunnel.c
index 709b4f9..513ff4a 100644
--- a/tools/gtp-tunnel.c
+++ b/tools/gtp-tunnel.c
@@ -86,6 +86,8 @@ add_tunnel(int argc, char *argv[], int genl_id, struct mnl_socket *nl)
}
gtp_tunnel_set_version(t, gtp_version);
+ optidx++;
+
if (gtp_version == GTP_V0)
gtp_tunnel_set_tid(t, atoi(argv[optidx++]));
else if (gtp_version == GTP_V1) {