aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libbb.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 646c58bf2..a605c7f03 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -640,6 +640,11 @@ int setsockopt_bindtodevice(int fd, const char *iface) FAST_FUNC;
640int bb_getsockname(int sockfd, void *addr, socklen_t addrlen) FAST_FUNC; 640int bb_getsockname(int sockfd, void *addr, socklen_t addrlen) FAST_FUNC;
641/* NB: returns port in host byte order */ 641/* NB: returns port in host byte order */
642unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port) FAST_FUNC; 642unsigned bb_lookup_port(const char *port, const char *protocol, unsigned default_port) FAST_FUNC;
643#if ENABLE_FEATURE_ETC_SERVICES
644# define bb_lookup_std_port(portstr, protocol, portnum) bb_lookup_port(portstr, protocol, portnum)
645#else
646# define bb_lookup_std_port(portstr, protocol, portnum) (portnum)
647#endif
643typedef struct len_and_sockaddr { 648typedef struct len_and_sockaddr {
644 socklen_t len; 649 socklen_t len;
645 union { 650 union {