willy tarreau | a41a8b4 | 2005-12-17 14:02:24 +0100 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <stdlib.h> |
| 3 | #include <unistd.h> |
| 4 | #include <string.h> |
| 5 | #include <ctype.h> |
| 6 | #include <sys/time.h> |
| 7 | #include <sys/types.h> |
| 8 | #include <sys/socket.h> |
| 9 | #include <netinet/tcp.h> |
| 10 | #include <netinet/in.h> |
| 11 | #include <arpa/inet.h> |
| 12 | #include <netdb.h> |
| 13 | #include <fcntl.h> |
| 14 | #include <errno.h> |
| 15 | #include <signal.h> |
| 16 | #include <stdarg.h> |
| 17 | #include <sys/resource.h> |
| 18 | #include <time.h> |
| 19 | #include <regex.h> |
| 20 | #include <syslog.h> |
| 21 | |
| 22 | |
Willy Tarreau | 38ceb55 | 2021-04-02 10:33:38 +0200 | [diff] [blame] | 23 | int main() { |
willy tarreau | a41a8b4 | 2005-12-17 14:02:24 +0100 | [diff] [blame] | 24 | printf("sizeof sockaddr=%d\n", sizeof(struct sockaddr)); |
| 25 | printf("sizeof sockaddr_in=%d\n", sizeof(struct sockaddr_in)); |
| 26 | printf("sizeof sockaddr_in6=%d\n", sizeof(struct sockaddr_in6)); |
Willy Tarreau | 38ceb55 | 2021-04-02 10:33:38 +0200 | [diff] [blame] | 27 | return 0; |
willy tarreau | a41a8b4 | 2005-12-17 14:02:24 +0100 | [diff] [blame] | 28 | } |