core: use string instead of compound literal
[rofl0r-proxychains-ng.git] / src / remotedns.h
blob588e09a5fd362648f0ca957b83941e89365d478e
1 #ifndef REMOTEDNS_H
2 #define REMOTEDNS_H
4 #include <unistd.h>
5 #include "ip_type.h"
7 #define MSG_LEN_MAX 256
9 enum at_msgtype {
10 ATM_GETIP = 0,
11 ATM_GETNAME,
12 ATM_FAIL,
13 ATM_EXIT,
16 struct at_msghdr {
17 unsigned char msgtype; /* at_msgtype */
18 char reserved;
19 unsigned short datalen;
22 struct at_msg {
23 struct at_msghdr h;
24 union {
25 char host[260];
26 ip_type4 ip;
27 } m;
30 #endif