Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libgtpnl/+/35987?usp=email )
Change subject: gtp: provide interface to set family
......................................................................
Patch Set 2:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/libgtpnl/+/35987/comment/cd48c380_8cedbf65
PS2, Line 9: Kernel now supports for TID/I_TEI to be used in both IPv4 and IPv6 GTP
IIUC you mean here that we now use different local TEI pools for IPv4 and IPv6 (which makes sense, since the the IP addresses will be different given the family is different), and hence one now needs to specify from which family (pool) the TEI is identified.
So in theory one would have to pass a tuple <local_IPaddr, TEID> to fully identify the tunnel, but since we have 1 local IP address per family then passing the famlily is enough. Am I correct?
--
To view, visit https://gerrit.osmocom.org/c/libgtpnl/+/35987?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libgtpnl
Gerrit-Branch: master
Gerrit-Change-Id: I584d3997ffb89cd430dfda9615a4ce0ce517ab2a
Gerrit-Change-Number: 35987
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Feb 2024 15:10:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libgtpnl/+/35986?usp=email )
Change subject: gtp-link: set IPv6 socket only
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://gerrit.osmocom.org/c/libgtpnl/+/35986?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libgtpnl
Gerrit-Branch: master
Gerrit-Change-Id: I887a107657059adeb14ae425576ae7ea9018f762
Gerrit-Change-Number: 35986
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Feb 2024 14:59:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: osmith.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libgtpnl/+/35985?usp=email )
Change subject: gtp-link: add IPv6 support
......................................................................
Patch Set 1:
(3 comments)
Commit Message:
https://gerrit.osmocom.org/c/libgtpnl/+/35985/comment/e664e1e3_44694f55
PS1, Line 12: ./gtp-link add gtp0 ip # IPv4 GGSN
It would be great that while doing this we take into account that we will want to specify an outer IPv4/IPv6 address instead of currently used ANY_ADDR.
https://gerrit.osmocom.org/c/libgtpnl/+/35985/comment/fefd0643_efc751d8
PS1, Line 15: ./gtp-link add gtp0 ip6 --sgsn # IPv6 SGSN
Also, afaiu it should be possible to have one tunnel bind to both an IPv4 and an IPv6 address, and depending on the IP address provided by the peer, use one or another when sharing messages.
(see GTPv1C/GTPv2C where it's possible to signal both an IPv4 and IPv6 address to the peer).
File tools/gtp-link.c:
https://gerrit.osmocom.org/c/libgtpnl/+/35985/comment/ddd91078_734aef7d
PS1, Line 159: ret = gtp_dev_create(-1, argv[2], gtp_sock.fd1, gtp_sock.fd2);
I'd welcome if we could rename this fd1 and fd2 to fd0 and fd1u to name which proto are they used for (no need to do it in this same patch).
--
To view, visit https://gerrit.osmocom.org/c/libgtpnl/+/35985?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libgtpnl
Gerrit-Branch: master
Gerrit-Change-Id: I201c32a1bf9a2ab7a228287590bc7ec19c4997b9
Gerrit-Change-Number: 35985
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 15 Feb 2024 14:57:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: osmith.
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libgtpnl/+/35986?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified-1 by Jenkins Builder
Change subject: gtp-link: set IPv6 socket only
......................................................................
gtp-link: set IPv6 socket only
GTP driver bails out for IPv4-mapped-IPv6 socket with EADDRNOAVAIL,
to prevent issues with setsockopt IPV6_ADDRFORM.
GTP control plane checks that tunnel family matches the socket family
for this GTP device, ie. there is a 1:1 mapping between the socket
listener and the device which determines the supported IP tunnel header.
Signed-off-by: Pablo Neira Ayuso <pablo(a)netfilter.org>
Change-Id: I887a107657059adeb14ae425576ae7ea9018f762
---
M tools/gtp-link.c
1 file changed, 22 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libgtpnl refs/changes/86/35986/2
--
To view, visit https://gerrit.osmocom.org/c/libgtpnl/+/35986?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libgtpnl
Gerrit-Branch: master
Gerrit-Change-Id: I887a107657059adeb14ae425576ae7ea9018f762
Gerrit-Change-Number: 35986
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newpatchset
Hello Jenkins Builder,
I'd like you to reexamine a change. Please visit
https://gerrit.osmocom.org/c/libgtpnl/+/35991?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Verified+1 by Jenkins Builder
Change subject: Add QEMU tests
......................................................................
Add QEMU tests
Add tests to ensure libgtpnl + kernel driver work as expected.
Right now a kernel needs to be built from source, using Pablo's tree:
https://git.kernel.org/pub/scm/linux/kernel/git/pablo/gtp.git/
Make sure to enable:
CONFIG_GTP=y
CONFIG_NET_NS=y
CONFIG_VETH=y
$ cp bzImage tests/qemu/_linux
$ ./configure --enable-qemu-tests
$ make
$ make check
Once patches are upstreamed, it will be possible to use a pre-built
kernel from jenkins with: make -C tests qemu-download-kernel
Related: OS#1952
Change-Id: Ibf75514b866fffb11e90529e4705f126b23d7415
---
M .gitignore
M Makefile.am
M configure.ac
A tests/Makefile.am
A tests/qemu/00_test_functions.sh
A tests/qemu/01_ms_ip4_sgsn_ip4.sh
A tests/qemu/02_ms_ip4_sgsn_ip6.sh
A tests/qemu/03_ms_ip6_sgsn_ip4.sh
A tests/qemu/04_ms_ip6_sgsn_ip6.sh
A tests/qemu/check-depends.sh
A tests/qemu/initrd-build.sh
A tests/qemu/initrd-init.sh
A tests/qemu/run-qemu.sh
13 files changed, 411 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libgtpnl refs/changes/91/35991/2
--
To view, visit https://gerrit.osmocom.org/c/libgtpnl/+/35991?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libgtpnl
Gerrit-Branch: master
Gerrit-Change-Id: Ibf75514b866fffb11e90529e4705f126b23d7415
Gerrit-Change-Number: 35991
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-MessageType: newpatchset
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/docker-playground/+/35992?usp=email )
Change subject: ttcn3-ggsn-test/fragment.config: add NET_NS, VETH
......................................................................
ttcn3-ggsn-test/fragment.config: add NET_NS, VETH
Build the kernel with NET_NS and VETH, so libgtpnl's qemu tests can
download the kernel and use it.
Related: OS#1952
Related: libgtpnl Ibf75514b866fffb11e90529e4705f126b23d7415
Change-Id: I6e893b64718f853b8595de36c090a1326db34419
---
M ttcn3-ggsn-test/fragment.config
1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/92/35992/1
diff --git a/ttcn3-ggsn-test/fragment.config b/ttcn3-ggsn-test/fragment.config
index 8a72dc2..b5a07b5 100644
--- a/ttcn3-ggsn-test/fragment.config
+++ b/ttcn3-ggsn-test/fragment.config
@@ -266,3 +266,8 @@
CONFIG_X86_HV_CALLBACK_VECTOR=y
# CONFIG_X86_X2APIC is not set
# CONFIG_XEN is not set
+
+# For libgtpnl's qemu tests
+CONFIG_NAMESPACES=y
+CONFIG_NET_NS=y
+CONFIG_VETH=y
--
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/35992?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: I6e893b64718f853b8595de36c090a1326db34419
Gerrit-Change-Number: 35992
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange