Lines Matching full:asoc

25 /* define some functions to make asoc/ep fill look clean */
28 struct sctp_association *asoc) in inet_diag_msg_sctpasoc_fill() argument
32 struct timer_list *t3_rtx = &asoc->peer.primary_path->T3_rtx_timer; in inet_diag_msg_sctpasoc_fill()
34 laddr = list_entry(asoc->base.bind_addr.address_list.next, in inet_diag_msg_sctpasoc_fill()
36 paddr = asoc->peer.primary_path->ipaddr; in inet_diag_msg_sctpasoc_fill()
37 dst = asoc->peer.primary_path->dst; in inet_diag_msg_sctpasoc_fill()
40 r->id.idiag_sport = htons(asoc->base.bind_addr.port); in inet_diag_msg_sctpasoc_fill()
41 r->id.idiag_dport = htons(asoc->peer.port); in inet_diag_msg_sctpasoc_fill()
59 r->idiag_state = asoc->state; in inet_diag_msg_sctpasoc_fill()
62 r->idiag_retrans = asoc->rtx_data_chunks; in inet_diag_msg_sctpasoc_fill()
94 struct sctp_association *asoc) in inet_diag_msg_sctpaddrs_fill() argument
102 addrlen * asoc->peer.transport_count); in inet_diag_msg_sctpaddrs_fill()
107 list_for_each_entry(from, &asoc->peer.transport_addr_list, in inet_diag_msg_sctpaddrs_fill()
118 /* sctp asoc/ep fill*/
119 static int inet_sctp_diag_fill(struct sock *sk, struct sctp_association *asoc, in inet_sctp_diag_fill() argument
146 if (asoc) { in inet_sctp_diag_fill()
147 inet_diag_msg_sctpasoc_fill(r, sk, asoc); in inet_sctp_diag_fill()
160 if (asoc && asoc->ep->sndbuf_policy) in inet_sctp_diag_fill()
161 amt = asoc->sndbuf_used; in inet_sctp_diag_fill()
165 if (asoc && asoc->ep->rcvbuf_policy) in inet_sctp_diag_fill()
166 amt = atomic_read(&asoc->rmem_alloc); in inet_sctp_diag_fill()
194 infox.asoc = asoc; in inet_sctp_diag_fill()
197 addr_list = asoc ? &asoc->base.bind_addr.address_list in inet_sctp_diag_fill()
202 if (asoc && (ext & (1 << (INET_DIAG_CONG - 1)))) in inet_sctp_diag_fill()
206 if (asoc && inet_diag_msg_sctpaddrs_fill(skb, asoc)) in inet_sctp_diag_fill()
226 static size_t inet_assoc_attr_size(struct sctp_association *asoc) in inet_assoc_attr_size() argument
232 list_for_each_entry_rcu(laddr, &asoc->base.bind_addr.address_list, in inet_assoc_attr_size()
237 + nla_total_size(addrlen * asoc->peer.transport_count) in inet_assoc_attr_size()
247 struct sctp_association *assoc = tsp->asoc; in sctp_sock_dump_one()
297 if (ep != tsp->asoc->ep) in sctp_sock_dump()
348 if (!list_is_first(&tsp->asoc->asocs, &ep->asocs)) in sctp_sock_filter()
409 if (infox->asoc) { in sctp_diag_get_info()
410 r->idiag_rqueue = atomic_read(&infox->asoc->rmem_alloc); in sctp_diag_get_info()
411 r->idiag_wqueue = infox->asoc->sndbuf_used; in sctp_diag_get_info()
417 sctp_get_sctp_info(sk, infox->asoc, infox->sctpinfo); in sctp_diag_get_info()
493 * 3 : to mark if we have dumped the ep info of the current asoc in sctp_diag_dump()