Lines Matching refs:tcp_stream
372 struct tcp_stream { struct
383 void (*on_closed)(struct tcp_stream *tcp); argument
384 void (*on_established)(struct tcp_stream *tcp); argument
385 void (*on_rcv_nxt_update)(struct tcp_stream *tcp, u32 rx_bytes); argument
386 void (*on_snd_una_update)(struct tcp_stream *tcp, u32 tx_bytes); argument
387 int (*rx)(struct tcp_stream *tcp, u32 rx_offs, void *buf, int len); argument
388 int (*tx)(struct tcp_stream *tcp, u32 tx_offs, void *buf, int maxlen); argument
393 void (*time_handler)(struct tcp_stream *tcp); argument
451 void tcp_stream_set_on_create_handler(int (*on_create)(struct tcp_stream *)); argument
462 struct tcp_stream *tcp_stream_get(int is_new, struct in_addr rhost,
473 struct tcp_stream *tcp_stream_connect(struct in_addr rhost, u16 rport);
481 void tcp_stream_put(struct tcp_stream *tcp);
496 void tcp_stream_restart_rx_timer(struct tcp_stream *tcp);
498 enum tcp_state tcp_stream_get_state(struct tcp_stream *tcp);
499 enum tcp_status tcp_stream_get_status(struct tcp_stream *tcp);
508 u32 tcp_stream_rx_offs(struct tcp_stream *tcp);
509 u32 tcp_stream_tx_offs(struct tcp_stream *tcp);
512 void tcp_stream_reset(struct tcp_stream *tcp);
514 void tcp_stream_close(struct tcp_stream *tcp);
518 int tcp_set_tcp_header(struct tcp_stream *tcp, uchar *pkt, int payload_len,