Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ip_type.h « src - github.com/rofl0r/proxychains-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 064153e030c8c80180bb1eaa8d9e38cc0276874d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef IP_TYPE_H
#define IP_TYPE_H

#include <stdint.h>

typedef union {
	unsigned char octet[4];
	uint32_t as_int;
} ip_type4;

typedef struct {
	union {
		ip_type4 v4;
		unsigned char v6[16];
	} addr;
	char is_v6;
} ip_type;

extern const ip_type ip_type_invalid;
extern const ip_type ip_type_localhost;

//RcB: DEP "ip_type.c"
#endif