This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: Another missing prototype: inet6_isipv4mapped
- To: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Subject: Re: Another missing prototype: inet6_isipv4mapped
- From: Philip Blundell <pb@nexus.co.uk>
- Date: Wed, 02 Dec 1998 18:14:29 +0100
- cc: libc-hacker@cygnus.com
>inet/in6_addr.c defines inet6_isipv4mapped but it's not in any
>header.
I found out why this was added: it was required by an early draft of the IPv6
Basic API. The later revisions have dropped the function so we can get rid of
it. I've attached a patch. Thanks for spotting this.
p.
1998-12-02 Philip Blundell <pb@nexus.co.uk>
* inet/in6_addr.c (inet6_isipv4mapped): Obsolete, deleted.
--- libc/inet/in6_addr.c 1997/08/04 12:35:28 1.1.1.1
+++ libc/inet/in6_addr.c 1998/12/02 18:12:14
@@ -23,8 +23,3 @@
{ { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } };
const struct in6_addr in6addr_loopback =
{ { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } };
-
-int inet6_isipv4mapped(const struct in6_addr *addr)
-{
- return IN6_IS_ADDR_V4MAPPED(addr);
-}