Lines Matching defs:asoc

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