Lines Matching refs:sock
95 socket_map_t sock; in mtcp_bind_monitor_filter() local
116 sock = &mtcp->msmap[sockid]; in mtcp_bind_monitor_filter()
119 switch (sock->socktype) { in mtcp_bind_monitor_filter()
126 if (SET_BPFFILTER(&sock->monitor_listener->raw_pkt_fcode, in mtcp_bind_monitor_filter()
140 if (SET_BPFFILTER(&sock->monitor_listener->stream_syn_fcode, in mtcp_bind_monitor_filter()
152 if (SET_BPFFILTER(&sock->monitor_listener->stream_orphan_fcode, in mtcp_bind_monitor_filter()
249 socket_map_t sock; in mtcp_peek() local
265 sock = &mtcp->msmap[msock]; in mtcp_peek()
266 if (sock->socktype != MOS_SOCK_MONITOR_STREAM_ACTIVE) { in mtcp_peek()
278 struct tcp_stream *mstrm = sock->monitor_stream->stream; in mtcp_peek()
291 loff_t *poff = &sock->monitor_stream->peek_offset[cur_stream->side]; in mtcp_peek()
367 socket_map_t sock; in mtcp_ppeek() local
382 sock = &mtcp->msmap[msock]; in mtcp_ppeek()
383 if (sock->socktype != MOS_SOCK_MONITOR_STREAM_ACTIVE) { in mtcp_ppeek()
395 struct tcp_stream *mstrm = sock->monitor_stream->stream; in mtcp_ppeek()
453 mtcp_getlastpkt(mctx_t mctx, int sock, int side, struct pkt_info *pkt) in mtcp_getlastpkt() argument
472 socket = &mtcp->msmap[sock]; in mtcp_getlastpkt()
526 mtcp_getlastpkt(mctx_t mctx, int sock, int side, struct pkt_ctx **pctx) in mtcp_getlastpkt() argument
555 mtcp_sendpkt(mctx_t mctx, int sock, const struct pkt_info *pkt) in mtcp_sendpkt() argument
573 socket = &mtcp->msmap[sock]; in mtcp_sendpkt()
705 mtcp_cb_stop(mctx_t mctx, int sock, int side) in mtcp_cb_stop() argument
719 socket = &mtcp->msmap[sock]; in mtcp_cb_stop()
792 mtcp_reset_conn(mctx_t mctx, int sock) in mtcp_reset_conn() argument
803 socket = &mtcp->msmap[sock]; in mtcp_reset_conn()
932 mtcp_setlastpkt(mctx_t mctx, int sock, int side, off_t offset, in mtcp_setlastpkt() argument
964 socket = &mtcp->msmap[sock]; in mtcp_setlastpkt()
1203 return mtcp_setlastpkt(mctx, sock, side, offset, data, datalen, option);