capt_get_packet(): check for key press only every 20ms
[iptraf-ng.git] / src / rvnamed.h
blob61554932fae34764a13af2944e89e53e0c391573
1 #ifndef IPTRAF_NG_RVNAMED_H
2 #define IPTRAF_NG_RVNAMED_H
4 #include <netinet/in.h>
5 #include <arpa/inet.h>
7 #define CHILDSOCKNAME "/dev/rvndcldcomsk"
8 #define PARENTSOCKNAME "/dev/rvndpntcomsk"
9 #define IPTSOCKNAME "/dev/rvndiptcomsk"
11 #define SOCKET_PREFIX "isock"
13 #define NOTRESOLVED 0
14 #define RESOLVING 1
15 #define RESOLVED 2
17 #define RVN_HELLO 0
18 #define RVN_REQUEST 1
19 #define RVN_REPLY 2
20 #define RVN_QUIT 3
22 #define MAX_RVNAMED_CHILDREN 200
24 struct rvn {
25 int type;
26 int ready;
27 struct sockaddr_storage addr;
28 char fqdn[45];
31 #endif /* IPTRAF_NG_RVNAMED_H */