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