1*76404edcSAsim Jamshed #ifndef __TCP_H_ 2*76404edcSAsim Jamshed #define __TCP_H_ 3*76404edcSAsim Jamshed 4*76404edcSAsim Jamshed #include "tcp_stream.h" 5*76404edcSAsim Jamshed #include "mos_api.h" 6*76404edcSAsim Jamshed #include "mtcp.h" 7*76404edcSAsim Jamshed 8*76404edcSAsim Jamshed extern inline void 9*76404edcSAsim Jamshed FillPacketContextTCPInfo(struct pkt_ctx *pctx, struct tcphdr * tcph); 10*76404edcSAsim Jamshed 11*76404edcSAsim Jamshed extern inline void 12*76404edcSAsim Jamshed FillFlowContext(struct pkt_ctx *pctx, 13*76404edcSAsim Jamshed tcp_stream *cur_stream, int cpu); 14*76404edcSAsim Jamshed 15*76404edcSAsim Jamshed extern inline void 16*76404edcSAsim Jamshed HandleSingleCallback(mtcp_manager_t mtcp, uint32_t hooking_point, 17*76404edcSAsim Jamshed struct pkt_ctx *pctx, uint64_t events); 18*76404edcSAsim Jamshed 19*76404edcSAsim Jamshed int 20*76404edcSAsim Jamshed ProcessInTCPPacket(mtcp_manager_t mtcp, struct pkt_ctx *pctx); 21*76404edcSAsim Jamshed 22*76404edcSAsim Jamshed void 23*76404edcSAsim Jamshed UpdateMonitor(mtcp_manager_t mtcp, struct tcp_stream *sendside_stream, 24*76404edcSAsim Jamshed struct tcp_stream *recvside_stream, struct pkt_ctx *pctx, 25*76404edcSAsim Jamshed bool is_pkt_reception); 26*76404edcSAsim Jamshed #endif 27