summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-03 01:13:04 +0000
committerDenis Vlasenko2007-04-03 01:13:04 +0000
commit992e05b6f070562d83f9238b227e1ddbf951c9af (patch)
treec64729c60f929f3007b4ed93543291b52cb50a02 /include/libbb.h
parentcea0a8bccbb0d98eb0e7423e6fff0d8529db8efe (diff)
downloadbusybox-992e05b6f070562d83f9238b227e1ddbf951c9af.zip
busybox-992e05b6f070562d83f9238b227e1ddbf951c9af.tar.gz
udpsvd: more work on it. works in limited testing.
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index b802e01..e5413b1 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -321,6 +321,17 @@ typedef struct len_and_sockaddr {
#endif
};
} len_and_sockaddr;
+enum {
+ LSA_SIZEOF_SA = sizeof(
+ union {
+ struct sockaddr sa;
+ struct sockaddr_in sin;
+#if ENABLE_FEATURE_IPV6
+ struct sockaddr_in6 sin6;
+#endif
+ }
+ )
+};
/* Create stream socket, and allocated suitable lsa
* (lsa of correct size and lsa->sa.sa_family (AF_INET/AF_INET6)) */
int xsocket_stream(len_and_sockaddr **lsap);