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

Message ID 1446118742-22809-5-git-send-email-aschultz@tpip.net
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Andreas Schultz Oct. 29, 2015, 11:39 a.m. UTC
Signed-off-by: Andreas Schultz <aschultz@tpip.net>
---
 gtp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

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",