[PATCH 4/6] gtp: update for Linux > 4.1+, __ip_select_ident arguments have changed

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Andreas Schultz aschultz at tpip.net
Thu Oct 29 11:39:00 UTC 2015


Signed-off-by: Andreas Schultz <aschultz at tpip.net>
---
 gtp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtp.c b/gtp.c
index 6eb1178..0d1b5ee 100644
--- a/gtp.c
+++ b/gtp.c
@@ -616,7 +616,7 @@ gtp_push_ip4hdr(struct sk_buff *skb, struct gtp_pktinfo *pktinfo)
 	iph->daddr	=	pktinfo->fl4.daddr;
 	iph->saddr	=	pktinfo->fl4.saddr;
 	iph->ttl	=	ip4_dst_hoplimit(&pktinfo->rt->dst);
-	__ip_select_ident(iph, &pktinfo->rt->dst,
+	__ip_select_ident(dev_net(pktinfo->rt->dst.dev), iph,
 			  (skb_shinfo(skb)->gso_segs ?: 1) - 1);
 
 	netdev_dbg(pktinfo->dev, "gtp -> IP src: %pI4 dst: %pI4\n",
-- 
2.5.0




More information about the OpenBSC mailing list