tools: gtp-tunnel: restore option parsing
Andreas accidentally broke parsing, restore it. Fixes: ba77a20 ("gtp-rtnl: Split TID handling for GTPv0 and GTPv1") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
f69f8c7362
commit
517be89706
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue