Lines Matching refs:seq

59 static int sctp_snmp_seq_show(struct seq_file *seq, void *v)
62 struct net *net = seq->private;
70 seq_printf(seq, "%-32s\t%ld\n", sctp_snmp_list[i].name,
77 static void sctp_seq_dump_local_addrs(struct seq_file *seq, struct sctp_ep_common *epb)
105 seq_printf(seq, "*");
107 af->seq_dump_addr(seq, addr);
113 static void sctp_seq_dump_remote_addrs(struct seq_file *seq, struct sctp_association *assoc)
126 seq_printf(seq, "*");
128 af->seq_dump_addr(seq, addr);
132 static void *sctp_eps_seq_start(struct seq_file *seq, loff_t *pos)
141 seq_printf(seq, " ENDPT SOCK STY SST HBKT LPORT UID INODE LADDRS\n");
146 static void sctp_eps_seq_stop(struct seq_file *seq, void *v)
151 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos)
161 static int sctp_eps_seq_show(struct seq_file *seq, void *v)
177 if (!net_eq(sock_net(sk), seq_file_net(seq)))
179 seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5u %5lu ", ep, sk,
182 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)),
185 sctp_seq_dump_local_addrs(seq, epb);
186 seq_printf(seq, "\n");
205 static void *sctp_transport_seq_start(struct seq_file *seq, loff_t *pos)
207 struct sctp_ht_iter *iter = seq->private;
211 return sctp_transport_get_idx(seq_file_net(seq), &iter->hti, *pos);
214 static void sctp_transport_seq_stop(struct seq_file *seq, void *v)
216 struct sctp_ht_iter *iter = seq->private;
227 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos)
229 struct sctp_ht_iter *iter = seq->private;
239 return sctp_transport_get_next(seq_file_net(seq), &iter->hti);
243 static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
251 seq_printf(seq, " ASSOC SOCK STY SST ST HBKT "
264 seq_printf(seq,
272 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)),
276 seq_printf(seq, " ");
277 sctp_seq_dump_local_addrs(seq, epb);
278 seq_printf(seq, "<-> ");
279 sctp_seq_dump_remote_addrs(seq, assoc);
280 seq_printf(seq, "\t%8lu %5d %5d %4d %4d %4d %8d "
290 seq_printf(seq, "\n");
302 static int sctp_remaddr_seq_show(struct seq_file *seq, void *v)
308 seq_printf(seq, "ADDR ASSOC_ID HB_ACT RTO MAX_PATH_RTX "
321 tsp->af_specific->seq_dump_addr(seq, &tsp->ipaddr);
322 seq_printf(seq, " ");
326 seq_printf(seq, "%d ", tsp->asoc->assoc_id);
332 seq_printf(seq, "%d ", timer_pending(&tsp->hb_timer));
337 seq_printf(seq, "%lu ", tsp->rto);
342 seq_printf(seq, "%d ", tsp->pathmaxrxt);
349 seq_puts(seq, "0 ");
356 seq_puts(seq, "0 ");
362 seq_printf(seq, "%d", tsp->state);
364 seq_printf(seq, "\n");