diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2004-01-17 05:03:31 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2004-01-17 05:03:31 +0000 |
commit | 036dbaa082f1974246d1d7d21a8e163559642485 (patch) | |
tree | 2488441544ab16f8e08d0955d323019e96ed3d4f /include | |
parent | b03be7f5677b86acfe2f64b5a57e1f361e257f6c (diff) | |
download | busybox-w32-036dbaa082f1974246d1d7d21a8e163559642485.tar.gz busybox-w32-036dbaa082f1974246d1d7d21a8e163559642485.tar.bz2 busybox-w32-036dbaa082f1974246d1d7d21a8e163559642485.zip |
Modify bb_lookup_port to allow the protocol to be specified, allowing
/etc/services support for inetd, netcat and tftp.
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index b2592c824..86e4fbea7 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -297,7 +297,7 @@ extern struct hostent *xgethostbyname2(const char *name, int af); | |||
297 | extern int create_icmp_socket(void); | 297 | extern int create_icmp_socket(void); |
298 | extern int create_icmp6_socket(void); | 298 | extern int create_icmp6_socket(void); |
299 | extern int xconnect(struct sockaddr_in *s_addr); | 299 | extern int xconnect(struct sockaddr_in *s_addr); |
300 | extern unsigned short bb_lookup_port(const char *port, unsigned short default_port); | 300 | extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port); |
301 | extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); | 301 | extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host); |
302 | 302 | ||
303 | //#warning wrap this? | 303 | //#warning wrap this? |