|
@@ -0,0 +1,31 @@
|
|
1
|
+#ifndef _GPXE_SOCKET_H
|
|
2
|
+#define _GPXE_SOCKET_H
|
|
3
|
+
|
|
4
|
+/** @file
|
|
5
|
+ *
|
|
6
|
+ * Socket addresses
|
|
7
|
+ *
|
|
8
|
+ */
|
|
9
|
+
|
|
10
|
+/* Network address family numbers */
|
|
11
|
+#define AF_INET 1
|
|
12
|
+#define AF_INET6 2
|
|
13
|
+
|
|
14
|
+/** A socket address family */
|
|
15
|
+typedef uint16_t sa_family_t;
|
|
16
|
+
|
|
17
|
+/**
|
|
18
|
+ * Generalized socket address structure
|
|
19
|
+ *
|
|
20
|
+ * This contains the fields common to socket addresses for all address
|
|
21
|
+ * families.
|
|
22
|
+ */
|
|
23
|
+struct sockaddr {
|
|
24
|
+ /** Socket address family
|
|
25
|
+ *
|
|
26
|
+ * This is an AF_XXX constant.
|
|
27
|
+ */
|
|
28
|
+ sa_family_t sa_family;
|
|
29
|
+};
|
|
30
|
+
|
|
31
|
+#endif /* _GPXE_SOCKET_H */
|