-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeasurements.c
32 lines (25 loc) · 916 Bytes
/
measurements.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "context.h"
#include "connections.h"
#include "utils.h"
/***********************************************************************************
* int isMeasurement(struct tapcontext *ctx,struct connection * con, iphdr * ip,tcphdr * tcp);
* return 1 if the given packet has been tagged by setMeasurement, 0 otherwise
*/
// FIXME: stub!
int isMeasurement(struct tapcontext *ctx,struct connection * con, iphdr * ip,tcphdr * tcp)
{
return 0;
}
/*********************************************************************************
* int setMeasurement(struct tapcontext *ctx, struct connection *con, struct packet *p);
* flag the ident field of the outgoing packet so that we can identify it coming back
*/
// FIXME: stub!
int setMeasurement(struct tapcontext *ctx, struct connection *con, struct packet *p)
{
return 0;
}