1 #ifndef __ETH_OUT_H_ 2 #define __ETH_OUT_H_ 3 4 #include <stdint.h> 5 6 #include "mtcp.h" 7 #include "tcp_stream.h" 8 #include "mos_api.h" 9 10 #define MAX_SEND_PCK_CHUNK 64 11 12 int 13 FlushSendChunkBuf(mtcp_manager_t mtcp, int nif); 14 15 uint8_t * 16 EthernetOutput(struct mtcp_manager *mtcp, struct pkt_ctx *pctx, 17 uint16_t h_proto, int nif, unsigned char* dst_haddr, uint16_t iplen, 18 uint32_t cur_ts); 19 20 void 21 ForwardEthernetFrame(struct mtcp_manager *mtcp, struct pkt_ctx *pctx); 22 23 #endif /* __ETH_OUT_H_ */ 24