1 #ifndef __IP_OUT_H_
2 #define __IP_OUT_H_
3 
4 #include <stdint.h>
5 #include "tcp_stream.h"
6 #include "mos_api.h"
7 
8 extern inline int
9 GetOutputInterface(uint32_t daddr);
10 
11 void
12 ForwardIPPacket(mtcp_manager_t mtcp, struct pkt_ctx *pctx);
13 
14 void
15 ForwardIPv4Packet(mtcp_manager_t mtcp, int nif_in, char *buf, int len);
16 
17 uint8_t *
18 IPOutputStandalone(struct mtcp_manager *mtcp,
19 		uint16_t ip_id, uint32_t saddr, uint32_t daddr, uint16_t tcplen,
20 		struct pkt_ctx *pctx, uint32_t cur_ts);
21 
22 uint8_t *
23 IPOutput(struct mtcp_manager *mtcp, tcp_stream *stream, uint16_t tcplen,
24 			struct pkt_ctx *pctx, uint32_t cur_ts);
25 
26 #endif /* __IP_OUT_H_ */
27