-
Notifications
You must be signed in to change notification settings - Fork 1
/
udpCallback.h
34 lines (31 loc) · 930 Bytes
/
udpCallback.h
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
33
34
/* udpReplay
* Copyright (c) 2016 Tupone Alfredo
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <pcap/pcap.h>
#include <unistd.h>
extern struct sockaddr_in sockaddr;
extern int rewriteDestination;
extern char *dvalue;
extern char *pvalue;
extern int flood;
extern useconds_t floodTime;
extern int loop;
extern useconds_t loopTime;
extern int oneByOne;
extern int asterixTime;
extern int setMulticastTTL;
extern long multicastTTLValue;
extern int datalink;
extern void replayAll(pcap_t *pcap);
extern int waitToLoop();