tor_multipath_voip/src/cap_utils.h

21 lines
528 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;
2019-06-03 15:09:40 +00:00
char* filename;
2019-06-03 12:32:52 +00:00
size_t sz;
2019-06-03 15:09:40 +00:00
size_t sz_obj;
2019-06-03 12:32:52 +00:00
};
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);
2019-06-03 15:09:40 +00:00
void cap_npeek_bp(struct cap_file *cf, int c, struct buffer_packet* bp);
2019-06-03 12:32:52 +00:00
size_t cap_count_bp(struct cap_file *cf);
2019-06-18 15:01:37 +00:00
void cap_begin(struct cap_file *cf);
2019-06-03 12:32:52 +00:00
void cap_unload(struct cap_file *cf);