relay.h 445 B

12345678910111213141516171819
  1. #ifndef _RELAY_H_
  2. #define _RELAY_H_
  3. #include "flow.h"
  4. #include <stdint.h>
  5. struct proxy_thread_data {
  6. flow *f;
  7. uint8_t server[50];
  8. int32_t pipefd;
  9. };
  10. int replace_packet(flow *f, struct packet_info *info);
  11. int replace_contents(flow *f, int32_t offset, struct packet_info *info);
  12. int read_header(flow *f, struct packet_info *info);
  13. uint16_t tcp_checksum(struct packet_info *info);
  14. void *proxy_covert_site(void *data);
  15. #endif /* _RELAY_H_ */