1 #ifndef STACK_SOURCE_H
2 #define STACK_SOURCE_H
3 #include "massip-addr.h"
4 
5 /**
6  * These the source IP addresses that we'll be spoofing. IP addresses
7  * and port numbers come from this list.
8  */
9 struct stack_src_t
10 {
11     struct {
12         unsigned first;
13         unsigned last;
14         unsigned range;
15     } ipv4;
16     struct {
17         unsigned first;
18         unsigned last;
19         unsigned range;
20     } port;
21 
22     struct {
23         ipv6address first;
24         ipv6address last;
25         unsigned range;
26     } ipv6;
27 };
28 
29 int is_myself(const struct stack_src_t *src, ipaddress ip, unsigned port);
30 int is_my_ip(const struct stack_src_t *src, ipaddress ip);
31 int is_my_port(const struct stack_src_t *src, unsigned ip);
32 
33 
34 
35 #endif
36