From 1b81b2562f3913f2d4fda5bd3a002430b51e0de4 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 6 Oct 2011 14:07:41 -0700 Subject: net-related headers --- system/include/net/netinet/in.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 system/include/net/netinet/in.h (limited to 'system/include/net/netinet/in.h') diff --git a/system/include/net/netinet/in.h b/system/include/net/netinet/in.h new file mode 100644 index 00000000..57576236 --- /dev/null +++ b/system/include/net/netinet/in.h @@ -0,0 +1,24 @@ + +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; +}; + -- cgit v1.2.3-18-g5258