Home
last modified time | relevance | path

Searched refs:pktinfo (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/net/
Dgtp.c448 static void gtp_push_header(struct sk_buff *skb, struct gtp_pktinfo *pktinfo) in gtp_push_header() argument
450 switch (pktinfo->pctx->gtp_version) { in gtp_push_header()
452 pktinfo->gtph_port = htons(GTP0_PORT); in gtp_push_header()
453 gtp0_push_header(skb, pktinfo->pctx); in gtp_push_header()
456 pktinfo->gtph_port = htons(GTP1U_PORT); in gtp_push_header()
457 gtp1_push_header(skb, pktinfo->pctx); in gtp_push_header()
462 static inline void gtp_set_pktinfo_ipv4(struct gtp_pktinfo *pktinfo, in gtp_set_pktinfo_ipv4() argument
468 pktinfo->sk = sk; in gtp_set_pktinfo_ipv4()
469 pktinfo->iph = iph; in gtp_set_pktinfo_ipv4()
470 pktinfo->pctx = pctx; in gtp_set_pktinfo_ipv4()
[all …]
/Linux-v5.10/net/ipv4/
Dip_sockglue.c1385 struct in_pktinfo *pktinfo = PKTINFO_SKB_CB(skb); in ipv4_pktinfo_prepare() local
1402 if (pktinfo->ipi_ifindex == LOOPBACK_IFINDEX) in ipv4_pktinfo_prepare()
1403 pktinfo->ipi_ifindex = inet_iif(skb); in ipv4_pktinfo_prepare()
1405 pktinfo->ipi_ifindex = rt->rt_iif; in ipv4_pktinfo_prepare()
1407 pktinfo->ipi_spec_dst.s_addr = fib_compute_spec_dst(skb); in ipv4_pktinfo_prepare()
1409 pktinfo->ipi_ifindex = 0; in ipv4_pktinfo_prepare()
1410 pktinfo->ipi_spec_dst.s_addr = 0; in ipv4_pktinfo_prepare()
/Linux-v5.10/tools/testing/selftests/net/
Dtimestamping.c221 struct in_pktinfo *pktinfo = in printpacket() local
224 pktinfo->ipi_ifindex); in printpacket()