aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gtp-link.c
AgeCommit message (Collapse)AuthorFilesLines
2017-03-24Add support for SGSN role via IFLA_GTP_ROLEHarald Welte1-3/+9
This patch corresponds to a Linux kernel patch extending the kernel GTP to also cover the SGSN role, not just the GGSN role. In order to keep the API/behavior compatible, gtp_dev_create() will continue to create GGSN-side tunnels, while a new gtp_dev_create_sgsn() is introduced to create SGSN-side tunnels. Signed-off-by: Harald Welte <laforge@gnumonks.org>
2017-03-24gtl-link.c: Actually use libgtpnl, don't hand-coded netlink msgHarald Welte1-55/+3
The command line tool should use libgtpnl, rather than replicating code for generating a netlink message.
2016-05-10tools: gtp-link: bind to GTP UDP socketsPablo Neira Ayuso1-1/+36
So we can fully test packet decapsulation without a full blown openggsn setup by injecting packets and using this simple tool. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2016-05-10tools: silence compilation warningsPablo Neira Ayuso1-1/+1
CC gtp-link.o gtp-link.c: In function ‘main’: gtp-link.c:48:40: warning: unused variable ‘flags’ [-Wunused-variable] unsigned int seq, portid, change = 0, flags = 0; ^ gtp-link.c:48:28: warning: unused variable ‘change’ [-Wunused-variable] unsigned int seq, portid, change = 0, flags = 0; ^ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2016-05-10tools: gtp-link: rename file now that we support deletion commandPablo Neira Ayuso1-0/+125
Better name for what this simple tool does. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>