blob: 76532916af6ade574ad1ff1642b9e662076baa6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef _NET_NETINET_IN_H
#define _NET_NETINET_IN_H
#ifdef __cplusplus
extern "C" {
#endif
#define INET_ADDRSTRLEN 16
#define INADDR_ANY 0
struct in_addr {
unsigned long s_addr;
};
struct sockaddr_in {
short sin_family;
unsigned short sin_port;
struct in_addr sin_addr;
char sin_zero[8];
};
struct in6_addr {
unsigned char s6_addr[16];
};
struct sockaddr_in6 {
short sin6_family;
short sin6_port;
int sin6_flowinfo;
struct in6_addr sin6_addr;
int sin6_scope_id;
};
#ifdef __cplusplus
}
#endif
#endif
|