diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:18:05 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:18:05 +0000 |
commit | b46aad6df449445a9fc4aa7b32bd40005438e3f7 (patch) | |
tree | 751aa858ca01f35de800164516b298887382919d /tests/exp/testinet.c | |
parent | Initial commit. (diff) | |
download | haproxy-b46aad6df449445a9fc4aa7b32bd40005438e3f7.tar.xz haproxy-b46aad6df449445a9fc4aa7b32bd40005438e3f7.zip |
Adding upstream version 2.9.5.upstream/2.9.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/exp/testinet.c')
-rw-r--r-- | tests/exp/testinet.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/exp/testinet.c b/tests/exp/testinet.c new file mode 100644 index 0000000..0eb87e9 --- /dev/null +++ b/tests/exp/testinet.c @@ -0,0 +1,28 @@ +#include <stdio.h> +#include <stdlib.h> +#include <unistd.h> +#include <string.h> +#include <ctype.h> +#include <sys/time.h> +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/tcp.h> +#include <netinet/in.h> +#include <arpa/inet.h> +#include <netdb.h> +#include <fcntl.h> +#include <errno.h> +#include <signal.h> +#include <stdarg.h> +#include <sys/resource.h> +#include <time.h> +#include <regex.h> +#include <syslog.h> + + +int main() { + printf("sizeof sockaddr=%d\n", sizeof(struct sockaddr)); + printf("sizeof sockaddr_in=%d\n", sizeof(struct sockaddr_in)); + printf("sizeof sockaddr_in6=%d\n", sizeof(struct sockaddr_in6)); + return 0; +} |