tor_multipath_voip/src/cap_utils.h

17 lines
383 B
C
Raw Normal View History

2019-06-03 12:32:52 +00:00
#pragma once
#include <stdlib.h>
#include <stdio.h>
#include "packet.h"
struct cap_file {
FILE *fd;
size_t sz;
};
void cap_load(struct cap_file *cf, char* filename);
void cap_next_bp(struct cap_file *cf, struct buffer_packet* bp);
void cap_peek_bp(struct cap_file *cf, struct buffer_packet* bp);
size_t cap_count_bp(struct cap_file *cf);
void cap_unload(struct cap_file *cf);