blob: 15b7907383d41bc87abbe716921844d2366e604f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$NetBSD: patch-ai,v 1.4 1999/09/15 21:30:59 tron Exp $
--- sockunion.h.orig Wed Sep 15 23:28:18 1999
+++ sockunion.h Wed Sep 15 23:28:18 1999
@@ -0,0 +1,18 @@
+#ifndef INET_ADDRSTR
+#define INET_ADDRSTRLEN 16
+#endif
+
+union sockunion {
+ struct sockinet {
+ u_char si_len;
+ u_char si_family;
+ u_short si_port;
+ } su_si;
+ struct sockaddr_in su_sin;
+#ifdef INET6
+ struct sockaddr_in6 su_sin6;
+#endif
+};
+#define su_len su_si.si_len
+#define su_family su_si.si_family
+#define su_port su_si.si_port
|