Lines Matching refs:fl4
287 static void sctp_v4_dst_saddr(union sctp_addr *saddr, struct flowi4 *fl4, in sctp_v4_dst_saddr() argument
292 saddr->v4.sin_addr.s_addr = fl4->saddr; in sctp_v4_dst_saddr()
420 struct flowi4 *fl4 = &_fl.u.ip4; in sctp_v4_get_dst() local
431 fl4->daddr = daddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
432 fl4->fl4_dport = daddr->v4.sin_port; in sctp_v4_get_dst()
433 fl4->flowi4_proto = IPPROTO_SCTP; in sctp_v4_get_dst()
435 fl4->flowi4_tos = RT_CONN_FLAGS_TOS(asoc->base.sk, tos); in sctp_v4_get_dst()
436 fl4->flowi4_oif = asoc->base.sk->sk_bound_dev_if; in sctp_v4_get_dst()
437 fl4->fl4_sport = htons(asoc->base.bind_addr.port); in sctp_v4_get_dst()
440 fl4->saddr = saddr->v4.sin_addr.s_addr; in sctp_v4_get_dst()
441 if (!fl4->fl4_sport) in sctp_v4_get_dst()
442 fl4->fl4_sport = saddr->v4.sin_port; in sctp_v4_get_dst()
445 pr_debug("%s: dst:%pI4, src:%pI4 - ", __func__, &fl4->daddr, in sctp_v4_get_dst()
446 &fl4->saddr); in sctp_v4_get_dst()
448 rt = ip_route_output_key(sock_net(sk), fl4); in sctp_v4_get_dst()
467 sctp_v4_dst_saddr(&dst_saddr, fl4, htons(bp->port)); in sctp_v4_get_dst()
499 fl4->fl4_sport = laddr->a.v4.sin_port; in sctp_v4_get_dst()
500 flowi4_update_output(fl4, in sctp_v4_get_dst()
506 rt = ip_route_output_key(sock_net(sk), fl4); in sctp_v4_get_dst()
515 if (!odev || odev->ifindex != fl4->flowi4_oif) { in sctp_v4_get_dst()
1052 struct flowi4 *fl4 = &t->fl.u.ip4; in sctp_v4_xmit() local
1059 skb->len, &fl4->saddr, &fl4->daddr); in sctp_v4_xmit()
1083 udp_tunnel_xmit_skb((struct rtable *)dst, sk, skb, fl4->saddr, in sctp_v4_xmit()
1084 fl4->daddr, dscp, ip4_dst_hoplimit(dst), df, in sctp_v4_xmit()