relay.h 329 B

123456789101112
  1. #ifndef _RELAY_H_
  2. #define _RELAY_H_
  3. #include "flow.h"
  4. #include <stdint.h>
  5. int replace_packet(flow *f, struct packet_info *info);
  6. int replace_contents(flow *f, int32_t offset, struct packet_info *info);
  7. int read_header(flow *f, struct packet_info *info);
  8. uint16_t tcp_checksum(struct packet_info *info);
  9. #endif /* _RELAY_H_ */