/netbsd-src/sys/netinet/ |
H A D | tcp_var.h | 213 struct tcpcb { struct 418 static __inline int tcp_reass_lock_try (struct tcpcb *) argument 420 static __inline void tcp_reass_unlock (struct tcpcb *) 424 tcp_reass_lock_try(struct tcpcb *tp) in tcp_reass_lock_try() 443 tcp_reass_unlock(struct tcpcb *tp) in tcp_reass_unlock() 457 printf("%s:%d: tcpcb %p reass already locked\n", \ 465 printf("%s:%d: tcpcb %p reass lock not held\n", \ 524 #define intotcpcb(ip) ((struct tcpcb *)(ip)->inp_ppcb) 660 #define TCP_STAT_DELAYED_FREE 56 /* delayed pool_put() of tcpcb */ 729 extern struct inpcbtable tcbtable; /* head of queue of active tcpcb' 214 t_familytcpcb global() argument 215 segqtcpcb global() argument 216 t_segqlentcpcb global() argument 217 t_timertcpcb global() argument 218 t_statetcpcb global() argument 219 t_rxtshifttcpcb global() argument 220 t_rxtcurtcpcb global() argument 221 t_dupackstcpcb global() argument 228 t_partialackstcpcb global() argument 229 t_peermsstcpcb global() argument 230 t_ourmsstcpcb global() argument 231 t_segsztcpcb global() argument 232 t_forcetcpcb global() argument 233 t_flagstcpcb global() argument 254 t_templatetcpcb global() argument 255 t_inpcbtcpcb global() argument 256 t_delack_chtcpcb global() argument 262 snd_unatcpcb global() argument 263 snd_nxttcpcb global() argument 264 snd_uptcpcb global() argument 265 snd_wl1tcpcb global() argument 266 snd_wl2tcpcb global() argument 267 isstcpcb global() argument 268 snd_wndtcpcb global() argument 279 snd_recovertcpcb global() argument 280 snd_hightcpcb global() argument 282 rcv_wndtcpcb global() argument 283 rcv_nxttcpcb global() argument 284 rcv_uptcpcb global() argument 285 irstcpcb global() argument 290 rcv_advtcpcb global() argument 299 snd_maxtcpcb global() argument 302 snd_cwndtcpcb global() argument 303 snd_ssthreshtcpcb global() argument 308 rfbuf_cnttcpcb global() argument 309 rfbuf_tstcpcb global() argument 315 t_rcvtimetcpcb global() argument 316 t_rtttimetcpcb global() argument 317 t_rtseqtcpcb global() argument 318 t_srtttcpcb global() argument 319 t_rttvartcpcb global() argument 320 t_rttmintcpcb global() argument 321 max_sndwndtcpcb global() argument 324 t_oobflagstcpcb global() argument 325 t_iobctcpcb global() argument 328 t_softerrortcpcb global() argument 331 snd_scaletcpcb global() argument 332 rcv_scaletcpcb global() argument 333 request_r_scaletcpcb global() argument 334 requested_s_scaletcpcb global() argument 335 ts_recenttcpcb global() argument 336 ts_recent_agetcpcb global() argument 337 ts_timebasetcpcb global() argument 338 last_ack_senttcpcb global() argument 341 t_bytes_ackedtcpcb global() argument 347 rcv_sack_flagstcpcb global() argument 348 rcv_dsack_blocktcpcb global() argument 349 timeqtcpcb global() argument 350 snd_holestcpcb global() argument 351 snd_numholestcpcb global() argument 352 rcv_lastsacktcpcb global() argument 353 sack_newdatatcpcb global() argument 355 snd_facktcpcb global() argument 359 snd_cubic_wmaxtcpcb global() argument 360 snd_cubic_wmax_lasttcpcb global() argument 361 snd_cubic_ctimetcpcb global() argument 367 t_lastmtcpcb global() argument 368 t_inofftcpcb global() argument 369 t_lastofftcpcb global() argument 370 t_lastlentcpcb global() argument 373 t_mtudisctcpcb global() argument 375 t_pmtud_mss_ackedtcpcb global() argument 376 t_pmtud_mtu_senttcpcb global() argument 377 t_pmtud_th_seqtcpcb global() argument 378 t_pmtud_nextmtutcpcb global() argument 379 t_pmtud_ip_lentcpcb global() argument 380 t_pmtud_ip_hltcpcb global() argument 382 t_ecn_retriestcpcb global() argument 384 t_congctltcpcb global() argument 387 t_keepinittcpcb global() argument 388 t_keepidletcpcb global() argument 389 t_keepintvltcpcb global() argument 390 t_keepcnttcpcb global() argument 391 t_maxidletcpcb global() argument 393 t_msltcpcb global() argument [all...] |
H A D | tcp_congctl.c | 193 static void tcp_common_congestion_exp(struct tcpcb *, int, int); 195 static int tcp_reno_do_fast_retransmit(struct tcpcb *, const struct tcphdr *); 196 static int tcp_reno_fast_retransmit(struct tcpcb *, const struct tcphdr *); 197 static void tcp_reno_slow_retransmit(struct tcpcb *); 198 static void tcp_reno_fast_retransmit_newack(struct tcpcb *, 200 static void tcp_reno_newack(struct tcpcb *, const struct tcphdr *); 201 static void tcp_reno_congestion_exp(struct tcpcb *tp); 203 static int tcp_newreno_fast_retransmit(struct tcpcb *, const struct tcphdr *); 204 static void tcp_newreno_fast_retransmit_newack(struct tcpcb *, 206 static void tcp_newreno_newack(struct tcpcb *, const struct tcphdr *); [all …]
|
H A D | tcp_congctl.h | 53 int (*fast_retransmit)(struct tcpcb *, const struct tcphdr *); 58 void (*slow_retransmit)(struct tcpcb *); 65 void (*fast_retransmit_newack)(struct tcpcb *, const struct tcphdr *); 71 void (*newack)(struct tcpcb *, const struct tcphdr *); 76 void (*cong_exp)(struct tcpcb *); 92 int tcp_congctl_select(struct tcpcb *, const char *); 93 void tcp_congctl_release(struct tcpcb *);
|
H A D | tcp_sack.c | 169 sack_allochole(struct tcpcb *tp) in sack_allochole() 188 sack_inserthole(struct tcpcb *tp, tcp_seq start, tcp_seq end, in sack_inserthole() 208 sack_removehole(struct tcpcb *tp, struct sackhole *hole) in sack_removehole() 226 tcp_new_dsack(struct tcpcb *tp, tcp_seq seq, u_int32_t len) in tcp_new_dsack() 241 tcp_sack_option(struct tcpcb *tp, const struct tcphdr *th, const u_char *cp, in tcp_sack_option() 403 tcp_del_sackholes(struct tcpcb *tp, const struct tcphdr *th) in tcp_del_sackholes() 428 tcp_free_sackholes(struct tcpcb *tp) in tcp_free_sackholes() 444 tcp_sack_output(struct tcpcb *tp, int *sack_bytes_rexmt) in tcp_sack_output() 473 tcp_sack_adjust(struct tcpcb *tp) in tcp_sack_adjust() 510 tcp_sack_numblks(const struct tcpcb *tp) in tcp_sack_numblks() [all …]
|
H A D | tcp_subr.c | 226 int tcp_freeq(struct tcpcb *); 374 pool_init(&tcpcb_pool, sizeof(struct tcpcb), 0, 0, 0, "tcpcbpl", in do_tcpinit() 448 tcp_template(struct tcpcb *tp) in tcp_template() 604 tcp_respond(struct tcpcb *tp, struct mbuf *mtemplate, struct mbuf *m, in tcp_respond() 878 static struct tcpcb tcpcb_template = { 903 struct tcpcb *tp = &tcpcb_template; in tcp_tcpcb_template() 943 struct tcpcb * 946 struct tcpcb *tp; in tcp_newtcpcb() 1016 struct tcpcb * 1017 tcp_drop(struct tcpcb *tp, int errno) in tcp_drop() [all …]
|
H A D | tcp_syncache.h | 192 struct tcpcb *sc_tp; /* tcb for listening socket */ 214 void syn_cache_insert(struct syn_cache *, struct tcpcb *); 217 void syn_cache_cleanup(struct tcpcb *);
|
H A D | tcp_usrreq.c | 157 tcp_debug_capture(struct tcpcb *tp, int req) in tcp_debug_capture() 166 tcp_debug_trace(struct socket *so, struct tcpcb *tp, int ostate, int req) in tcp_debug_trace() 175 change_keepalive(struct socket *so, struct tcpcb *tp) in change_keepalive() 204 tcp_fill_info(struct tcpcb *tp, struct tcp_info *ti) in tcp_fill_info() 262 struct tcpcb *tp; in tcp_ctloutput() 447 struct tcpcb *tp; in tcp_attach() 505 struct tcpcb *tp; in tcp_detach() 522 struct tcpcb *tp; in tcp_accept() 561 struct tcpcb *tp; in tcp_bind() 604 struct tcpcb *tp; in tcp_listen() [all …]
|
H A D | tcp_timer.c | 226 struct tcpcb *tp = arg; in tcp_delack() 283 tcp_canceltimers(struct tcpcb *tp) in tcp_canceltimers() 303 struct tcpcb *tp = arg; in tcp_timer_rexmt() 450 struct tcpcb *tp = arg; in tcp_timer_persist() 514 struct tcpcb *tp = arg; in tcp_timer_keep() 593 struct tcpcb *tp = arg; in tcp_timer_2msl()
|
H A D | tcp_vtw.h | 358 struct tcpcb; 361 int vtw_add(int, struct tcpcb *);
|
H A D | tcp_debug.h | 60 struct tcpcb td_cb;
|
H A D | tcp_syncache.c | 317 syn_cache_insert(struct syn_cache *sc, struct tcpcb *tp) in syn_cache_insert() 478 syn_cache_cleanup(struct tcpcb *tp) in syn_cache_cleanup() 561 struct tcpcb *tp; in syn_cache_get() 881 struct tcpcb tb, *tp; in syn_cache_add() 1088 struct tcpcb *tp; in syn_cache_respond()
|
H A D | tcp_input.c | 251 nd_hint(struct tcpcb *tp) in nd_hint() 290 tcp_setup_ack(struct tcpcb *tp, const struct tcphdr *th) in tcp_setup_ack() 301 icmp_check(struct tcpcb *tp, const struct tcphdr *th, int acked) in icmp_check() 404 static int tcp_reass(struct tcpcb *, const struct tcphdr *, struct mbuf *, 455 tcp_reass(struct tcpcb *tp, const struct tcphdr *th, struct mbuf *m, int tlen) in tcp_reass() 1197 struct tcpcb *tp = NULL; in tcp_input() 3086 tcp_dooptions(struct tcpcb *tp, const u_char *cp, int cnt, struct tcphdr *th, in tcp_dooptions() 3274 struct tcpcb *tp = sototcpcb(so); in tcp_pulloutofband() 3298 tcp_xmit_timer(struct tcpcb *tp, uint32_t rtt) in tcp_xmit_timer()
|
H A D | tcp_debug.c | 111 tcp_trace(short act, short ostate, struct tcpcb *tp, struct mbuf *m, int req) in tcp_trace()
|
H A D | tcp_output.c | 226 tcp_segsize(struct tcpcb *tp, int *txsegsizep, int *rxsegsizep, in tcp_segsize() 401 tcp_build_datapkt(struct tcpcb *tp, struct socket *so, int off, in tcp_build_datapkt() 505 tcp_output(struct tcpcb *tp) in tcp_output() 1661 tcp_setpersist(struct tcpcb *tp) in tcp_setpersist()
|
H A D | tcp_vtw.c | 1877 vtw_add(int af, struct tcpcb *tp) in vtw_add()
|
/netbsd-src/usr.bin/netstat/ |
H A D | inet.c | 281 struct tcpcb tcpcb; in getpcblist_kmem() local 316 (char *)&tcpcb, sizeof (tcpcb)); in getpcblist_kmem() 329 pcblist[i].ki_tstate = tcpcb.t_state; in getpcblist_kmem() 1049 struct tcpcb tcpcb; in tcp_dump() local 1067 kread(pcbaddr, (char *)&tcpcb, sizeof(tcpcb)); in tcp_dump() 1075 ci = (callout_impl_t *)&tcpcb.t_timer[i]; in tcp_dump() 1085 if (tcpcb.t_state < 0 || tcpcb.t_state >= TCP_NSTATES) in tcp_dump() 1086 printf("State: %d", tcpcb.t_state); in tcp_dump() 1088 printf("State: %s", tcpstates[tcpcb.t_state]); in tcp_dump() 1089 printf(", flags 0x%x, inpcb 0x%lx\n\n", tcpcb.t_flags, in tcp_dump() [all …]
|
H A D | inet6.c | 108 #define tcp6cb tcpcb 148 struct tcpcb tcpcb; variable 329 (char *)&tcpcb, sizeof (tcpcb)); in getpcblist_kmem() 342 pcblist[i].ki_tstate = tcpcb.t_state; in getpcblist_kmem() 1496 #define mypcb tcpcb in tcp6_dump() 1520 ci = (callout_impl_t *)&tcpcb.t_timer[i]; in tcp6_dump() 1544 tcpcb.t_peermss, tcpcb.t_ourmss, tcpcb.t_segsz, tcpcb.t_segqlen); in tcp6_dump() 1564 printf("rcvtime %u, rtttime %u, ", tcpcb.t_rcvtime, tcpcb.t_rtttime); in tcp6_dump()
|
/netbsd-src/usr.sbin/trpt/ |
H A D | trpt.c | 144 static void tcp_trace(short, short, struct tcpcb *, struct tcpcb *, 279 dotrace(caddr_t tcpcb) in dotrace() argument 290 if (tcpcb && td->td_tcb != tcpcb) in dotrace() 296 (struct tcpcb *)td->td_tcb, &td->td_cb, in dotrace() 302 (struct tcpcb *)td->td_tcb, &td->td_cb, in dotrace() 308 (struct tcpcb *)td->td_tcb, &td->td_cb, in dotrace() 317 if (tcpcb && td->td_tcb != tcpcb) in dotrace() 323 (struct tcpcb *)td->td_tcb, &td->td_cb, in dotrace() 329 (struct tcpcb *)td->td_tcb, &td->td_cb, in dotrace() 335 (struct tcpcb *)td->td_tcb, &td->td_cb, in dotrace() [all …]
|
/netbsd-src/external/bsd/ipf/dist/ipsend/ |
H A D | sock.c | 198 struct tcpcb *find_tcp(fd, ti) in find_tcp() 202 struct tcpcb *t; 257 t = (struct tcpcb *)calloc(1, sizeof(*t)); 264 return (struct tcpcb *)i->inp_ppcb; 289 struct tcpcb *find_tcp(tfd, ti) in find_tcp() 293 struct tcpcb *t; 370 t = (struct tcpcb *)calloc(1, sizeof(*t)); 377 return (struct tcpcb *)i->inp_ppcb; 401 struct tcpcb *t, tcb;
|
H A D | ipsend.h | 55 extern struct tcpcb *find_tcp __P((int, struct tcpiphdr *));
|
H A D | iptests.c | 1104 struct tcpcb *tcbp, tcb;
|
/netbsd-src/usr.bin/systat/ |
H A D | netstat.c | 221 struct tcpcb tcpcb; in fetchnetstat4() local 249 KREAD(inp->inp_ppcb, &tcpcb, sizeof (tcpcb)); in fetchnetstat4() 250 enter(inp, &sockb, tcpcb.t_state, "tcp"); in fetchnetstat4() 264 struct tcpcb tcpcb; in fetchnetstat6() local 294 KREAD(inp->inp_ppcb, &tcpcb, sizeof (tcpcb)); in fetchnetstat6() 295 enter6(inp, &sockb, tcpcb.t_state, "tcp"); in fetchnetstat6()
|
/netbsd-src/sys/netipsec/ |
H A D | ipsec.h | 300 struct tcpcb; 305 size_t ipsec4_hdrsiz_tcp(struct tcpcb *);
|
H A D | ipsec6.h | 54 size_t ipsec6_hdrsiz_tcp(struct tcpcb *);
|