Lines Matching refs:pktinfo

782 static void gtp_push_header(struct sk_buff *skb, struct gtp_pktinfo *pktinfo)  in gtp_push_header()  argument
784 switch (pktinfo->pctx->gtp_version) { in gtp_push_header()
786 pktinfo->gtph_port = htons(GTP0_PORT); in gtp_push_header()
787 gtp0_push_header(skb, pktinfo->pctx); in gtp_push_header()
790 pktinfo->gtph_port = htons(GTP1U_PORT); in gtp_push_header()
791 gtp1_push_header(skb, pktinfo->pctx); in gtp_push_header()
796 static inline void gtp_set_pktinfo_ipv4(struct gtp_pktinfo *pktinfo, in gtp_set_pktinfo_ipv4() argument
802 pktinfo->sk = sk; in gtp_set_pktinfo_ipv4()
803 pktinfo->iph = iph; in gtp_set_pktinfo_ipv4()
804 pktinfo->pctx = pctx; in gtp_set_pktinfo_ipv4()
805 pktinfo->rt = rt; in gtp_set_pktinfo_ipv4()
806 pktinfo->fl4 = *fl4; in gtp_set_pktinfo_ipv4()
807 pktinfo->dev = dev; in gtp_set_pktinfo_ipv4()
811 struct gtp_pktinfo *pktinfo) in gtp_build_skb_ip4() argument
880 gtp_set_pktinfo_ipv4(pktinfo, pctx->sk, iph, pctx, rt, &fl4, dev); in gtp_build_skb_ip4()
881 gtp_push_header(skb, pktinfo); in gtp_build_skb_ip4()
893 struct gtp_pktinfo pktinfo; in gtp_dev_xmit() local
906 err = gtp_build_skb_ip4(skb, dev, &pktinfo); in gtp_dev_xmit()
919 netdev_dbg(pktinfo.dev, "gtp -> IP src: %pI4 dst: %pI4\n", in gtp_dev_xmit()
920 &pktinfo.iph->saddr, &pktinfo.iph->daddr); in gtp_dev_xmit()
921 udp_tunnel_xmit_skb(pktinfo.rt, pktinfo.sk, skb, in gtp_dev_xmit()
922 pktinfo.fl4.saddr, pktinfo.fl4.daddr, in gtp_dev_xmit()
923 pktinfo.iph->tos, in gtp_dev_xmit()
924 ip4_dst_hoplimit(&pktinfo.rt->dst), in gtp_dev_xmit()
926 pktinfo.gtph_port, pktinfo.gtph_port, in gtp_dev_xmit()
927 !net_eq(sock_net(pktinfo.pctx->sk), in gtp_dev_xmit()