[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 23:17:44 +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=ZlamAhm1HKLYLTlYhP2ckOb0dj0phze6ZMEzIzO110Y=; b=EIR8zvpB1xIBOcRNOY/OfEMvcaXTWjhW1iYjgcuKxH3IgqbnuC4GSVTjk0oa/MS80BM2g5dIJIoLBKXul34kViM+t4iCarB70uchnK43eX94qActkTl9CIIAXHeyIC8kIDTQe8oOhfqJ9yrY7IFPJqI//RRTRZlLkatb/3d9Nkx7CH3SPFCRbC92jkplkDkvGnEKfZbE9cfOMEcY4KTvlAl3EwXQ4GmX4veaY84LOpIullTo2qdOAMjtZEeDUlKGDmQpZfjm/N7AtPNWysg3veJb7/ib0TarwX5VVWHfjlrNqRnsulfgWaxnlF1CRGJzZTjtSp5A7OqKRAutc8wOVw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ica8lz7xp/6iN6dc1iYfpM7/VgUgOsxvfYqTK3aX9+xWaikr0J/5kflHvlJWQO+gHf9lOqA9ohwJapL7M7Vcfak1IqYOs3ks0343U1G0RuvG/2hBGT5AefFD7ty1UciMmhdRL2UjMFTnvZl4wBKKH2eU4Z/SZlUlomhugvUtasQuaDbI3zWqia3vRz1a6iOj0+1HuUUP7CX1lpcxr1C+hPwPN+BHEZWKRqNa5jAnQr1Sl6qPc9UliSg8XXQyIVupgc5hKqAl1azwp/dv6NqxiTW767uOqsDGYi08G8EvY3z8sz3jyOU++r1uz4inB8iwji/zFezyEbK1W1asdWRdYA==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Delivery-date: Tue, 10 Dec 2019 23:17:49 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVrmltzP3prNrYyU+zEj4ZjYM5kKe0AzmA
  • Thread-topic: [Minios-devel] [UNIKRAFT/LIBLWIP PATCH v2 1/2] Add missing EAI_* macro definitions

Hey,

Actually there is a problem that may be fixed during the upstreaming, 
please see inline.

Thanks,

Vlad

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
This definition should be removed since we're redefining the value again 
at a future point in the code.
>   
>   /* 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
Right here.
> +#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®.