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)
175 if (!net_eq(sock_net(sk), seq_file_net(seq)))
177 seq_printf(seq, "%8pK %8pK %-3d %-3d %-4d %-5d %5u %5lu ", ep, sk,
180 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)),
183 sctp_seq_dump_local_addrs(seq, &ep->base);
184 seq_printf(seq, "\n");
203 static void *sctp_transport_seq_start(struct seq_file *seq, loff_t *pos)
205 struct sctp_ht_iter *iter = seq->private;
209 return sctp_transport_get_idx(seq_file_net(seq), &iter->hti, *pos);
212 static void sctp_transport_seq_stop(struct seq_file *seq, void *v)
214 struct sctp_ht_iter *iter = seq->private;
225 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos)
227 struct sctp_ht_iter *iter = seq->private;
237 return sctp_transport_get_next(seq_file_net(seq), &iter->hti);
241 static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
249 seq_printf(seq, " ASSOC SOCK STY SST ST HBKT "
262 seq_printf(seq,
270 from_kuid_munged(seq_user_ns(seq), sock_i_uid(sk)),
274 seq_printf(seq, " ");
275 sctp_seq_dump_local_addrs(seq, epb);
276 seq_printf(seq, "<-> ");
277 sctp_seq_dump_remote_addrs(seq, assoc);
278 seq_printf(seq, "\t%8lu %5d %5d %4d %4d %4d %8d "
288 seq_printf(seq, "\n");
300 static int sctp_remaddr_seq_show(struct seq_file *seq, void *v)
306 seq_printf(seq, "ADDR ASSOC_ID HB_ACT RTO MAX_PATH_RTX "
319 tsp->af_specific->seq_dump_addr(seq, &tsp->ipaddr);
320 seq_printf(seq, " ");
324 seq_printf(seq, "%d ", tsp->asoc->assoc_id);
330 seq_printf(seq, "%d ", timer_pending(&tsp->hb_timer));
335 seq_printf(seq, "%lu ", tsp->rto);
340 seq_printf(seq, "%d ", tsp->pathmaxrxt);
347 seq_puts(seq, "0 ");
354 seq_puts(seq, "0 ");
360 seq_printf(seq, "%d", tsp->state);
362 seq_printf(seq, "\n");