Home
last modified time | relevance | path

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

/net/sctp/
Dsocket.c4346 struct sctp_getaddrs_old getaddrs; in sctp_getsockopt_peer_addrs_old() local
4358 if (copy_from_user(&getaddrs, optval, len)) in sctp_getsockopt_peer_addrs_old()
4361 if (getaddrs.addr_num <= 0) return -EINVAL; in sctp_getsockopt_peer_addrs_old()
4367 asoc = sctp_id2assoc(sk, getaddrs.assoc_id); in sctp_getsockopt_peer_addrs_old()
4371 to = (void __user *)getaddrs.addrs; in sctp_getsockopt_peer_addrs_old()
4381 if (cnt >= getaddrs.addr_num) break; in sctp_getsockopt_peer_addrs_old()
4383 getaddrs.addr_num = cnt; in sctp_getsockopt_peer_addrs_old()
4386 if (copy_to_user(optval, &getaddrs, len)) in sctp_getsockopt_peer_addrs_old()
4397 struct sctp_getaddrs getaddrs; in sctp_getsockopt_peer_addrs() local
4409 if (copy_from_user(&getaddrs, optval, sizeof(struct sctp_getaddrs))) in sctp_getsockopt_peer_addrs()
[all …]