Searched refs:src_info (Results 1 – 3 of 3) sorted by relevance
/net/ipv6/ |
D | datagram.c | 496 struct in6_pktinfo src_info; in ip6_datagram_recv_common_ctl() local 499 src_info.ipi6_ifindex = IP6CB(skb)->iif; in ip6_datagram_recv_common_ctl() 500 src_info.ipi6_addr = ipv6_hdr(skb)->daddr; in ip6_datagram_recv_common_ctl() 502 src_info.ipi6_ifindex = in ip6_datagram_recv_common_ctl() 505 &src_info.ipi6_addr); in ip6_datagram_recv_common_ctl() 507 put_cmsg(msg, SOL_IPV6, IPV6_PKTINFO, sizeof(src_info), &src_info); in ip6_datagram_recv_common_ctl() 587 struct in6_pktinfo src_info; in ip6_datagram_recv_specific_ctl() local 589 src_info.ipi6_ifindex = opt->iif; in ip6_datagram_recv_specific_ctl() 590 src_info.ipi6_addr = ipv6_hdr(skb)->daddr; in ip6_datagram_recv_specific_ctl() 591 put_cmsg(msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); in ip6_datagram_recv_specific_ctl() [all …]
|
D | ipv6_sockglue.c | 1022 struct in6_pktinfo src_info; in do_ipv6_getsockopt() local 1023 src_info.ipi6_ifindex = np->mcast_oif ? np->mcast_oif : in do_ipv6_getsockopt() 1025 src_info.ipi6_addr = np->mcast_oif ? sk->sk_v6_daddr : np->sticky_pktinfo.ipi6_addr; in do_ipv6_getsockopt() 1026 put_cmsg(&msg, SOL_IPV6, IPV6_PKTINFO, sizeof(src_info), &src_info); in do_ipv6_getsockopt() 1038 struct in6_pktinfo src_info; in do_ipv6_getsockopt() local 1039 src_info.ipi6_ifindex = np->mcast_oif ? np->mcast_oif : in do_ipv6_getsockopt() 1041 src_info.ipi6_addr = np->mcast_oif ? sk->sk_v6_daddr : in do_ipv6_getsockopt() 1043 put_cmsg(&msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); in do_ipv6_getsockopt()
|
/net/ipv4/ |
D | ip_sockglue.c | 202 struct in6_pktinfo *src_info; in ip_cmsg_send() local 204 if (cmsg->cmsg_len < CMSG_LEN(sizeof(*src_info))) in ip_cmsg_send() 206 src_info = (struct in6_pktinfo *)CMSG_DATA(cmsg); in ip_cmsg_send() 207 if (!ipv6_addr_v4mapped(&src_info->ipi6_addr)) in ip_cmsg_send() 209 ipc->oif = src_info->ipi6_ifindex; in ip_cmsg_send() 210 ipc->addr = src_info->ipi6_addr.s6_addr32[3]; in ip_cmsg_send()
|