[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/LIBLWIP PATCH v2 1/2] Add missing EAI_* macro definitions


  • To: "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Tue, 10 Dec 2019 22:59:54 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ueFpSQbwj87l//dy7JFwZyRDRFbkhiNcv6GfMnTBTgY=; b=OK6ep0nFQFSHRIYiCJmIGHZflWozhq/qcxp8a7mY+6sQbnU4eIm7rmCD/ctDM7qDDPqvocRrEvP7vWhAYNdM2pES4WR1h/3yuK/v9vsoTGZmOFW6MLOQZXtosamWYDbPCEZbFIpc3ecmuMiClszrlQZ0aR306TST7SGbkE/Y7ZCq4kC+uKd8ssclKec7iZ6hqIE1HR+JJ9MjiwlAw0vaOX/C1C4zJWjQ7d697klPGpcJ7d+olOO/+2Q1NSDmasiOBuOg5rlWwTNSxeEeFacNF5W14PTtYo0KLwKIN86ojX9DkhjxqwaFH/ekpg8aDhxJZhr2aPLJWdsw4L2v29aPOw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A1K4lT8d6enMrYBNrYciD507Nqo8iqtO4UjHsUCrSh+bl4N8lAkX2aUN1b5wU8NggNFyN59EKasOVVAt3UvTS4lyHgY3kydMXSQv2Do/eH511CYVUvgHUcAJ9ochPmgNlrmNgj/xkjKzhr0SxBHyYAOD2QufHyApjue+UbBSRs5tyfTW10BOtqFV7faVfonW5GJ75VLtRMjuzhwMmcIkjolm+vhuNIIvVZCAVQwb/buV6QjCJKTv5R2R2WkL3buIKrOwd2xPfugAny1w2Ryb77vs8DvZwoaCdQNWMGcLx84t6YPxe4bXpKjy0S9mZzyWO6U8fVE1/Q4LaqdQllabyg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Delivery-date: Tue, 10 Dec 2019 23:00:04 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVrmltzP3prNrYyU+zEj4ZjYM5kKez/jwA
  • Thread-topic: [Minios-devel] [UNIKRAFT/LIBLWIP PATCH v2 1/2] Add missing EAI_* macro definitions

Thanks Felipe!

Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>

On 09.12.2019 10:19, Felipe Huici wrote:
> Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx>
> ---
>   include/netdb.h | 11 ++++++++++-
>   1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/include/netdb.h b/include/netdb.h
> index 948a2e7..5bbd354 100644
> --- a/include/netdb.h
> +++ b/include/netdb.h
> @@ -1,3 +1,5 @@
> +#ifndef _LWIP_GLUE_NETDB_H_
> +#define _LWIP_GLUE_NETDB_H_
>   #include <compat/posix/netdb.h>
>   
>   #if LWIP_DNS && LWIP_SOCKET
> @@ -63,7 +65,13 @@ void setprotoent(int stayopen);
>   #define EAI_SYSTEM     11
>   
>   /* Error values for getaddrinfo() not defined by lwip/netdb.h */
> -#define EAI_OVERFLOW    205      /* Argument buffer overflow.  */
> +#define EAI_BADFLAGS   -1
> +#define EAI_AGAIN      -3
> +#define EAI_NODATA     -5
> +#define EAI_SOCKTYPE   -7
> +#define EAI_ADDRFAMILY -9
> +#define EAI_SYSTEM     -11
> +#define EAI_OVERFLOW   -12
>   
>   int getnameinfo(const struct sockaddr *addr, socklen_t addrlen,
>               char *host, socklen_t hostlen,
> @@ -73,4 +81,5 @@ struct servent *getservbyname(const char *name, const char 
> *proto);
>   struct servent *getservbyport(int port, const char *proto);
>   int getservbyport_r(int port, const char *prots, struct servent *se,
>                   char *buf, size_t buflen, struct servent **res);
> +#endif
>   
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.