Lines Matching refs:laddr
30 union sctp_addr laddr, paddr; in inet_diag_msg_sctpasoc_fill() local
34 laddr = list_entry(asoc->base.bind_addr.address_list.next, in inet_diag_msg_sctpasoc_fill()
47 *(struct in6_addr *)r->id.idiag_src = laddr.v6.sin6_addr; in inet_diag_msg_sctpasoc_fill()
55 r->id.idiag_src[0] = laddr.v4.sin_addr.s_addr; in inet_diag_msg_sctpasoc_fill()
74 struct sctp_sockaddr_entry *laddr; in inet_diag_msg_sctpladdrs_fill() local
80 list_for_each_entry_rcu(laddr, address_list, list) in inet_diag_msg_sctpladdrs_fill()
88 list_for_each_entry_rcu(laddr, address_list, list) { in inet_diag_msg_sctpladdrs_fill()
89 memcpy(info, &laddr->a, sizeof(laddr->a)); in inet_diag_msg_sctpladdrs_fill()
90 memset(info + sizeof(laddr->a), 0, addrlen - sizeof(laddr->a)); in inet_diag_msg_sctpladdrs_fill()
233 struct sctp_sockaddr_entry *laddr; in inet_assoc_attr_size() local
235 list_for_each_entry_rcu(laddr, &asoc->base.bind_addr.address_list, in inet_assoc_attr_size()
431 union sctp_addr laddr, paddr; in sctp_diag_dump_one() local
440 laddr.v4.sin_port = req->id.idiag_sport; in sctp_diag_dump_one()
441 laddr.v4.sin_addr.s_addr = req->id.idiag_src[0]; in sctp_diag_dump_one()
442 laddr.v4.sin_family = AF_INET; in sctp_diag_dump_one()
448 laddr.v6.sin6_port = req->id.idiag_sport; in sctp_diag_dump_one()
449 memcpy(&laddr.v6.sin6_addr, req->id.idiag_src, in sctp_diag_dump_one()
450 sizeof(laddr.v6.sin6_addr)); in sctp_diag_dump_one()
451 laddr.v6.sin6_family = AF_INET6; in sctp_diag_dump_one()
460 net, &laddr, &paddr, &commp); in sctp_diag_dump_one()