-
Notifications
You must be signed in to change notification settings - Fork 293
Expand file tree
/
Copy pathhosts.h
More file actions
34 lines (24 loc) · 714 Bytes
/
Copy pathhosts.h
File metadata and controls
34 lines (24 loc) · 714 Bytes
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
#ifndef HOSTS_H_INCLUDED
#define HOSTS_H_INCLUDED
#include "querydnsbase.h"
#include "extendablebuffer.h"
#define DOMAIN_NAME_LENGTH_MAX 128
typedef struct _Host4{
_32BIT_INT Domain; /* Offset */
char IP[sizeof(struct in_addr)];
}Host4;
typedef struct _Host6{
_32BIT_INT Domain; /* Offset */
char IP[16];
}Host6;
typedef struct _HostCName{
_32BIT_INT Domain; /* Offset */
_32BIT_INT CName;
}HostCName;
typedef struct _HostDisabled{
_32BIT_INT Domain; /* Offset */
}HostDisabled;
int Hosts_Init(void);
BOOL Hosts_IsInited(void);
int Hosts_GetByQuestion(char *Question, ExtendableBuffer *Buffer, int *AnswerCount, QueryContext *Context);
#endif // HOSTS_H_INCLUDED