]>
Commit | Line | Data |
---|---|---|
7cdaaf39 | 1 | #ifndef IRC_H |
2 | #define IRC_H | |
3 | ||
c185a5dd | 4 | #include "inet.h" |
5 | ||
7cdaaf39 | 6 | #define NICKMAX 32 |
7 | #define MSGLENMAX 513 | |
8 | ||
9 | extern void irc_send(char *data, ...); | |
10 | extern void irc_kline(char *addr, char *ip); | |
11 | extern void irc_cycle(void); | |
12 | extern void irc_timer(void); | |
13 | ||
c185a5dd | 14 | struct bopm_sockaddr { |
15 | union { | |
16 | struct sockaddr_in sa4; | |
17 | #ifdef IPV6 | |
18 | struct sockaddr_in6 sa6; | |
19 | #endif | |
20 | } sas; | |
21 | }; | |
22 | ||
23 | ||
24 | struct bopm_ircaddr { | |
25 | union { | |
26 | struct in_addr in4; | |
27 | #ifdef IPV6 | |
28 | struct in6_addr in6; | |
29 | #endif | |
30 | } ins; | |
31 | }; | |
32 | ||
33 | int remote_is_ipv6; | |
34 | int bindto_ipv6; | |
35 | ||
36 | #define copy_s_addr(a, b) \ | |
37 | do { \ | |
38 | ((uint32_t *)a)[0] = ((uint32_t *)b)[0]; \ | |
39 | ((uint32_t *)a)[1] = ((uint32_t *)b)[1]; \ | |
40 | ((uint32_t *)a)[2] = ((uint32_t *)b)[2]; \ | |
41 | ((uint32_t *)a)[3] = ((uint32_t *)b)[3]; \ | |
42 | } while(0) | |
43 | ||
7cdaaf39 | 44 | #endif |