Home
last modified time | relevance | path

Searched refs:ipc (Results 1 – 8 of 8) sorted by relevance

/net/qrtr/
Daf_qrtr.c159 static void qrtr_port_put(struct qrtr_sock *ipc);
438 struct qrtr_sock *ipc; in qrtr_endpoint_post() local
525 ipc = qrtr_port_lookup(cb->dst_port); in qrtr_endpoint_post()
526 if (!ipc) in qrtr_endpoint_post()
529 if (sock_queue_rcv_skb(&ipc->sk, skb)) { in qrtr_endpoint_post()
530 qrtr_port_put(ipc); in qrtr_endpoint_post()
534 qrtr_port_put(ipc); in qrtr_endpoint_post()
664 struct qrtr_sock *ipc; in qrtr_port_lookup() local
670 ipc = xa_load(&qrtr_ports, port); in qrtr_port_lookup()
671 if (ipc) in qrtr_port_lookup()
[all …]
/net/ipv4/
Draw.c476 struct ipcm_cookie ipc; in raw_sendmsg() local
534 ipcm_init_sk(&ipc, inet); in raw_sendmsg()
537 ipc.protocol = IPPROTO_RAW; in raw_sendmsg()
540 err = ip_cmsg_send(sk, msg, &ipc, false); in raw_sendmsg()
542 kfree(ipc.opt); in raw_sendmsg()
545 if (ipc.opt) in raw_sendmsg()
549 saddr = ipc.addr; in raw_sendmsg()
550 ipc.addr = daddr; in raw_sendmsg()
552 if (!ipc.opt) { in raw_sendmsg()
560 ipc.opt = &opt_copy.opt; in raw_sendmsg()
[all …]
Dping.c711 struct ipcm_cookie ipc; in ping_v4_sendmsg() local
747 ipcm_init_sk(&ipc, inet); in ping_v4_sendmsg()
750 err = ip_cmsg_send(sk, msg, &ipc, false); in ping_v4_sendmsg()
752 kfree(ipc.opt); in ping_v4_sendmsg()
755 if (ipc.opt) in ping_v4_sendmsg()
758 if (!ipc.opt) { in ping_v4_sendmsg()
766 ipc.opt = &opt_copy.opt; in ping_v4_sendmsg()
771 saddr = ipc.addr; in ping_v4_sendmsg()
772 ipc.addr = faddr = daddr; in ping_v4_sendmsg()
774 if (ipc.opt && ipc.opt->opt.srr) { in ping_v4_sendmsg()
[all …]
Dicmp.c363 struct ipcm_cookie *ipc, struct rtable **rt) in icmp_push_reply() argument
370 ipc, rt, MSG_DONTWAIT) < 0) { in icmp_push_reply()
396 struct ipcm_cookie ipc; in icmp_reply() local
424 ipcm_init(&ipc); in icmp_reply()
426 ipc.sockc.mark = mark; in icmp_reply()
427 daddr = ipc.addr = ip_hdr(skb)->saddr; in icmp_reply()
431 ipc.opt = &icmp_param->replyopts.opt; in icmp_reply()
432 if (ipc.opt->opt.srr) in icmp_reply()
448 icmp_push_reply(sk, icmp_param, &fl4, &ipc, &rt); in icmp_reply()
591 struct ipcm_cookie ipc; in __icmp_send() local
[all …]
Dip_output.c1262 struct ipcm_cookie *ipc, struct rtable **rtp) in ip_setup_cork() argument
1280 opt = ipc->opt; in ip_setup_cork()
1290 cork->addr = ipc->addr; in ip_setup_cork()
1293 cork->gso_size = ipc->gso_size; in ip_setup_cork()
1300 cork->ttl = ipc->ttl; in ip_setup_cork()
1301 cork->tos = ipc->tos; in ip_setup_cork()
1302 cork->mark = ipc->sockc.mark; in ip_setup_cork()
1303 cork->priority = ipc->priority; in ip_setup_cork()
1304 cork->transmit_time = ipc->sockc.transmit_time; in ip_setup_cork()
1306 sock_tx_timestamp(sk, ipc->sockc.tsflags, &cork->tx_flags); in ip_setup_cork()
[all …]
Dudp.c1063 struct ipcm_cookie ipc; in udp_sendmsg() local
1132 ipcm_init_sk(&ipc, inet); in udp_sendmsg()
1133 ipc.gso_size = READ_ONCE(up->gso_size); in udp_sendmsg()
1136 err = udp_cmsg_send(sk, msg, &ipc.gso_size); in udp_sendmsg()
1138 err = ip_cmsg_send(sk, msg, &ipc, in udp_sendmsg()
1141 kfree(ipc.opt); in udp_sendmsg()
1144 if (ipc.opt) in udp_sendmsg()
1148 if (!ipc.opt) { in udp_sendmsg()
1156 ipc.opt = &opt_copy.opt; in udp_sendmsg()
1163 (struct sockaddr *)usin, &ipc.addr); in udp_sendmsg()
[all …]
Dip_sockglue.c242 int ip_cmsg_send(struct sock *sk, struct msghdr *msg, struct ipcm_cookie *ipc, in ip_cmsg_send() argument
264 ipc->oif = src_info->ipi6_ifindex; in ip_cmsg_send()
265 ipc->addr = src_info->ipi6_addr.s6_addr32[3]; in ip_cmsg_send()
270 err = __sock_cmsg_send(sk, msg, cmsg, &ipc->sockc); in ip_cmsg_send()
283 err = ip_options_get(net, &ipc->opt, in ip_cmsg_send()
296 ipc->oif = info->ipi_ifindex; in ip_cmsg_send()
297 ipc->addr = info->ipi_spec_dst.s_addr; in ip_cmsg_send()
306 ipc->ttl = val; in ip_cmsg_send()
317 ipc->tos = val; in ip_cmsg_send()
318 ipc->priority = rt_tos2priority(ipc->tos); in ip_cmsg_send()
[all …]
/net/iucv/
Diucv.c1487 struct iucv_path_complete *ipc = (void *) data; in iucv_path_complete() local
1488 struct iucv_path *path = iucv_path_table[ipc->ippathid]; in iucv_path_complete()
1491 path->flags = ipc->ipflags1; in iucv_path_complete()
1493 path->handler->path_complete(path, ipc->ipuser); in iucv_path_complete()