Home
last modified time | relevance | path

Searched refs:tcpcb (Results 1 – 24 of 24) sorted by relevance

/netbsd/src/sys/netinet/
Dtcp_var.h213 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()
524 #define intotcpcb(ip) ((struct tcpcb *)(ip)->inp_ppcb)
790 void tcp_canceltimers(struct tcpcb *);
791 struct tcpcb *
792 tcp_close(struct tcpcb *);
793 int tcp_isdead(struct tcpcb *);
[all …]
Dtcp_congctl.c193 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 …]
Dtcp_congctl.h53 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 *);
Dtcp_sack.c169 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 …]
Dtcp_subr.c226 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 …]
Dtcp_syncache.h192 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 *);
Dtcp_usrreq.c157 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 …]
Dtcp_timer.c226 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()
Dtcp_vtw.h358 struct tcpcb;
361 int vtw_add(int, struct tcpcb *);
Dtcp_debug.h60 struct tcpcb td_cb;
Dtcp_syncache.c317 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()
Dtcp_input.c251 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()
Dtcp_debug.c111 tcp_trace(short act, short ostate, struct tcpcb *tp, struct mbuf *m, int req) in tcp_trace()
Dtcp_output.c226 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()
Dtcp_vtw.c1877 vtw_add(int af, struct tcpcb *tp) in vtw_add()
/netbsd/src/usr.bin/netstat/
Dinet.c281 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 …]
Dinet6.c108 #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/
Dtrpt.c144 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/
Dsock.c198 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;
Dipsend.h55 extern struct tcpcb *find_tcp __P((int, struct tcpiphdr *));
Diptests.c1104 struct tcpcb *tcbp, tcb;
/netbsd/src/usr.bin/systat/
Dnetstat.c221 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/
Dipsec.h300 struct tcpcb;
305 size_t ipsec4_hdrsiz_tcp(struct tcpcb *);
Dipsec6.h54 size_t ipsec6_hdrsiz_tcp(struct tcpcb *);