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/+/35997?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: allow to specify listener address
......................................................................
gtp-link: allow to specify listener address
gtp-link add <device> <family> [--sgsn] [<address>]
Allow to specify listener address, if not specified use ANY_ADDRESS.
Change-Id: I7a9b64393fd68d58c2c158c0e85c0470be007f63
---
M tools/gtp-link.c
1 file changed, 67 insertions(+), 14 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libgtpnl refs/changes/97/35997/2
--
To view, visit https://gerrit.osmocom.org/c/libgtpnl/+/35997?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: I7a9b64393fd68d58c2c158c0e85c0470be007f63
Gerrit-Change-Number: 35997
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-MessageType: newpatchset
osmith has submitted this change. ( https://gerrit.osmocom.org/c/libgtpnl/+/35986?usp=email )
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(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
pespin: Looks good to me, but someone else must approve
diff --git a/tools/gtp-link.c b/tools/gtp-link.c
index feb2efe..325a45f 100644
--- a/tools/gtp-link.c
+++ b/tools/gtp-link.c
@@ -75,6 +75,7 @@
{
int fd1 = socket(family, SOCK_DGRAM, 0);
int fd2 = socket(family, SOCK_DGRAM, 0);
+ int one = 1;
if (fd1 < 0 || fd2 < 0)
return -1;
@@ -95,6 +96,10 @@
gtp_sock->len = sizeof(struct sockaddr_in6);
setup_sockaddr_in6(>p_sock->sockaddr.fd1.in6, 3386);
setup_sockaddr_in6(>p_sock->sockaddr.fd2.in6, 2152);
+ if (setsockopt(fd1, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(one)) < 0)
+ perror("setsockopt IPV6_V6ONLY: ");
+ if (setsockopt(fd2, IPPROTO_IPV6, IPV6_V6ONLY, &one, sizeof(one)) < 0)
+ perror("setsockopt IPV6_V6ONLY: ");
break;
}
--
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: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged
Attention is currently required from: osmith, pablo.
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: Code-Review+2
--
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-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: pablo <pablo(a)gnumonks.org>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: pablo <pablo(a)gnumonks.org>
Gerrit-Comment-Date: Fri, 16 Feb 2024 14:51:43 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment