Lines Matching refs:ipc
690 struct ipcm_cookie ipc; in ping_v4_sendmsg() local
726 ipcm_init_sk(&ipc, inet); in ping_v4_sendmsg()
729 err = ip_cmsg_send(sk, msg, &ipc, false); in ping_v4_sendmsg()
731 kfree(ipc.opt); in ping_v4_sendmsg()
734 if (ipc.opt) in ping_v4_sendmsg()
737 if (!ipc.opt) { in ping_v4_sendmsg()
745 ipc.opt = &opt_copy.opt; in ping_v4_sendmsg()
750 saddr = ipc.addr; in ping_v4_sendmsg()
751 ipc.addr = faddr = daddr; in ping_v4_sendmsg()
753 if (ipc.opt && ipc.opt->opt.srr) { in ping_v4_sendmsg()
758 faddr = ipc.opt->opt.faddr; in ping_v4_sendmsg()
760 tos = get_rttos(&ipc, inet); in ping_v4_sendmsg()
763 (ipc.opt && ipc.opt->opt.is_strictroute)) { in ping_v4_sendmsg()
768 if (!ipc.oif || netif_index_is_l3_master(sock_net(sk), ipc.oif)) in ping_v4_sendmsg()
769 ipc.oif = inet->mc_index; in ping_v4_sendmsg()
772 } else if (!ipc.oif) in ping_v4_sendmsg()
773 ipc.oif = inet->uc_index; in ping_v4_sendmsg()
775 flowi4_init_output(&fl4, ipc.oif, ipc.sockc.mark, tos, in ping_v4_sendmsg()
802 if (!ipc.addr) in ping_v4_sendmsg()
803 ipc.addr = fl4.daddr; in ping_v4_sendmsg()
817 0, &ipc, &rt, msg->msg_flags); in ping_v4_sendmsg()
828 kfree(ipc.opt); in ping_v4_sendmsg()