diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-04-25 19:02:31 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-04-25 21:44:46 +0200 |
commit | f2286395e9dd5c1a9d2c57bafbe68c1e3a1b273f (patch) | |
tree | 409f91f428ca9a17d89208f37f7c8b730c227393 /sgsnemu/sgsnemu.c | |
parent | 9eebe15cd1309011d43a3490de7fbc973966f120 (diff) |
Move kernel GTP support from ggsn/ to lib/
This way, the IP address / route handling between TUN devices and kernel
GTP can be shared, which will provide not only a unified codebase but
also a more consistent behavior.
This also paves the road for to use kernel GTP from sgsnemu in the future.
Related: OS#3214
Change-Id: Ic53a971136edd0d8871fbd6746d7b0090ce3a188
Diffstat (limited to 'sgsnemu/sgsnemu.c')
-rw-r--r-- | sgsnemu/sgsnemu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c index 92abc70..1e61a09 100644 --- a/sgsnemu/sgsnemu.c +++ b/sgsnemu/sgsnemu.c @@ -1571,7 +1571,7 @@ int main(int argc, char **argv) if (options.createif) { printf("Setting up interface\n"); /* Create a tunnel interface */ - if (tun_new((struct tun_t **)&tun, options.tun_dev_name)) { + if (tun_new((struct tun_t **)&tun, options.tun_dev_name, false, -1, -1)) { SYS_ERR(DSGSN, LOGL_ERROR, 0, "Failed to create tun"); exit(1); |