]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commitdiff
Add servent and protoent
authorVlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@stud.acs.upb.ro>
Thu, 6 Jun 2019 16:39:03 +0000 (16:39 +0000)
committerFelipe Huici <felipe.huici@neclab.eu>
Thu, 6 Jun 2019 21:26:57 +0000 (23:26 +0200)
This patch adds the definition of servent and protoent to netdb.h since it is
missing from lwip/netdb.h .

Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
include/netdb.h

index 5e2eb602c632762ece92cc435c03c118292880c9..6ba6aad856fc848d278dc2d4c7b5b4d93174ec34 100644 (file)
@@ -1 +1,14 @@
 #include <compat/posix/netdb.h>
+
+struct servent {
+       char    *s_name;        /* official service name */
+       char    **s_aliases;    /* alias list */
+       int     s_port;         /* port # */
+       char    *s_proto;       /* protocol to use */
+};
+
+struct protoent {
+       char    *p_name;        /* official protocol name */
+       char    **p_aliases;    /* alias list */
+       int     p_proto;        /* protocol # */
+};