diff --git a/include/netinet/in.h b/include/netinet/in.h index 53e0706b5b..c2d2244c7a 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -1,7 +1,7 @@ /**************************************************************************** * include/netinet/in.h * - * Copyright (C) 2007, 2009-2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2007, 2009-2010, 2017 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -128,6 +128,13 @@ (a)->s6_addr32[2] == 0 && \ (a)->s6_addr32[3] == 0) +#define IN6_IS_ADDR_V4COMPAT(a) \ + ((a)->s6_addr32[0] == 0 && \ + (a)->s6_addr32[1] == 0 && \ + (a)->s6_addr32[2] == 0 && \ + (a)->s6_addr32[3] != 0 && \ + (a)->s6_addr32[3] != NTOHL(1)) + #define IN6_IS_ADDR_V4MAPPED(a) \ ((a)->s6_addr32[0] == 0 && \ (a)->s6_addr32[1] == 0 && \ @@ -137,10 +144,6 @@ * Public Type Definitions ****************************************************************************/ -/**************************************************************************** - * Public Type Definitions - ****************************************************************************/ - typedef uint16_t in_port_t; /* IPv4 Internet address */