[BusyBox-cvs] busybox/include libbb.h,1.124,1.125

Glenn McGrath bug1 at busybox.net
Sat Jan 17 05:03:33 UTC 2004


Update of /var/cvs/busybox/include
In directory nail:/tmp/cvs-serv356/include

Modified Files:
	libbb.h 
Log Message:
Modify bb_lookup_port to allow the protocol to be specified, allowing 
/etc/services support for inetd, netcat and tftp.


Index: libbb.h
===================================================================
RCS file: /var/cvs/busybox/include/libbb.h,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- libbb.h	20 Dec 2003 01:47:16 -0000	1.124
+++ libbb.h	17 Jan 2004 05:03:30 -0000	1.125
@@ -297,7 +297,7 @@
 extern int create_icmp_socket(void);
 extern int create_icmp6_socket(void);
 extern int xconnect(struct sockaddr_in *s_addr);
-extern unsigned short bb_lookup_port(const char *port, unsigned short default_port);
+extern unsigned short bb_lookup_port(const char *port, const char *protocol, unsigned short default_port);
 extern void bb_lookup_host(struct sockaddr_in *s_in, const char *host);
 
 //#warning wrap this?




More information about the busybox-cvs mailing list