Mercurial > flash_v2
view packages/net/ns/dns/current/ChangeLog @ 210:d2c90368aeef
Merge from eCos master repository on 2002-05-23-21:39:14-BST
| author | jlarmour |
|---|---|
| date | Thu, 23 May 2002 22:59:51 +0000 |
| parents | e0c0827131d1 |
| children | 6eb55882e01c |
line wrap: on
line source
2002-05-23 Jonathan Larmour <jlarmour@redhat.com> * cdl/dns.cdl (CYGPKG_NS_DNS_BUILD): Require thread destructors in kernel. * include/dns_impl.inl: Instead of using cyg_thread_get_data and _set_data directly, instead use store_hent and free_stored_hent defined by includer. * src/dns.c: Define store_hent() and free_stored_hent() and make them use thread destructors thus fixing a memory leak. 2002-05-14 Jesper Skov <jskov@redhat.com> * tests/dns2.c: Fix warning. 2002-02-22 Hugo Tyson <hmt@redhat.com> * doc/dns.sgml: New file. Documentation separated from monolithic network component. 2002-02-01 Gary Thomas <gthomas@redhat.com> * src/dns.c (cyg_dns_res_init): Need valid value for sin_len. 2002-01-31 Jonathan Larmour <jlarmour@redhat.com> * cdl/dns.cdl: Don't build tests if no DNS! 2001-12-06 Andrew Lunn <andrew.lunn@ascom.ch> * src/dns.c (cyg_dns_res_init): Allow this to be called more than once. The DHCP client will do this when interfaces YoYo. Restarting requires closing the socket (if any) and freeing the per-thread-data slot number. * include/dns_impl.inl (setdomainname): Allow the name to be cleared. Check for NULL pointers variously before checking for valid pointer asserts. * tests/dns2.c: New file: Test the DNS configuration via DHCP. * tests/dns1.c: Initially clear the domainname. 2001-11-29 Jonathan Larmour <jlarmour@redhat.com> * src/dns.c: Rename index -> ptdindex to avoid conflict with BSD index() function. * include/dns_impl.inl: Ditto. 2001-09-28 Jesper Skov <jskov@redhat.com> * tests/dns1.c (_DNS_IP): Changed to IP used in farm. 2001-09-27 Jesper Skov <jskov@redhat.com> * include/dns_priv.h: Added DNS_REPLY definitions. * include/dns_impl.inl: Handle NXDomain returns. * include/dns_impl.inl: Added tracing. * src/dns.c: Same. 2001-09-26 Jesper Skov <jskov@redhat.com> * tests/dns1.c (dns_test): Use hstrerror instead of strerror. * include/dns.h: Added h_errno support. * include/dns_impl.inl: Use h_errno instead of errno. Added hstrerror(). Make hostname lookups before hostname.domainmain lookups. 2001-09-25 Jesper Skov <jskov@redhat.com> * include/dns.h: Moved some more defs to.. * include/dns_priv.h: ...here. * src/dns-priv.h: [deleted] * include/dns_priv.h: [added] * tests/dns1.c: Include netdb.h instead of dns.h. * src/dns.c: Moved all DNS protocol functions into dns_impl.inl. Allow for RedBoot to share the implementation with a smaller overhead. * include/dns_impl.inl: Added. * cdl/dns.cdl: Moved compile statement and requirements into CYGPKG_NS_DNS_BUILD option which can be forced off by RedBoot. Moved headers to cyg/ns/dns. * src/dns.c (alloc_hent, free_hent, alloc_string, free_string): Added these wrapper functions for malloc/free calls - allow easier maintaining of cloned function in RedBoot which uses static variables for storage. Incidently removed a little code duplication. * include/dns.h: Only include exported information. * src/dns-priv.h: Everything else moved to this file. * cdl/dns.cdl: Added feature requirements and CYGINT_ISO_DNS magic. * include/dns.h: Renamed res_init to cyg_dns_res_init. * src/dns.c: Same. * tests/dns1.c: Same. * src/dns.c: Use drv_api mutex, removed some include statements. * include/dns.h: Provide hostent definition and function declarations. * tests/dns1.c: Use cambridge.redhat.com addresses. Changed to output PASS/FAIL. * src/dns.c (parse_answer): On PTR lookups, alloc space for in_addr, so caller can copy data there. Fix gethostbyaddr() to do so. Note that error values do not match gethostbyaddr(3). 2001-09-20 Jesper Skov <jskov@redhat.com> * src/dns.c: More cosmetic changes, a few htons -> ntohs changes, reducing size of critical section a few places, rely on build_query setting errno, and set errno when getdomainname can't copy domain name out due to size limitation. 2001-09-19 Jesper Skov <jskov@redhat.com> * tests/dns1.c (dns_test): Fix inet_aton check. * src/dns.c: A few comment and cosmetic changes. 2001-09-18 Jesper Skov <jskov@redhat.com> * src/dns.c: Added DNS code contributed by Andrew Lunn <andrew.lunn@ascom.ch> * include/dns.h: Same. * tests/dns1.c: Same. //=========================================================================== //####ECOSGPLCOPYRIGHTBEGIN#### // ------------------------------------------- // This file is part of eCos, the Embedded Configurable Operating System. // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc. // // eCos is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License as published by the Free // Software Foundation; either version 2 or (at your option) any later version. // // eCos is distributed in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License // for more details. // // You should have received a copy of the GNU General Public License along // with eCos; if not, write to the Free Software Foundation, Inc., // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. // // As a special exception, if other files instantiate templates or use macros // or inline functions from this file, or you compile this file and link it // with other works to produce a work based on this file, this file does not // by itself cause the resulting work to be covered by the GNU General Public // License. However the source code for this file must still be made available // in accordance with section (3) of the GNU General Public License. // // This exception does not invalidate any other reasons why a work based on // this file might be covered by the GNU General Public License. // // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc. // at http://sources.redhat.com/ecos/ecos-license/ // ------------------------------------------- //####ECOSGPLCOPYRIGHTEND#### //===========================================================================
