2003-03-03 Jonathan Larmour
|
2003-03-03 Jonathan Larmour
|
|
|
* tests/dns1.c: Use BOOTP info where possible in preference to
|
* tests/dns1.c: Use BOOTP info where possible in preference to
|
(likely incorrect!) hardcoded info. Use non-Red Hat test
|
(likely incorrect!) hardcoded info. Use non-Red Hat test
|
addresses.
|
addresses.
|
|
|
* tests/dns2.c: Use non-Red Hat test addresses. And don't check
|
* tests/dns2.c: Use non-Red Hat test addresses. And don't check
|
BOOTP-derived domainname as we don't know what it should be!
|
BOOTP-derived domainname as we don't know what it should be!
|
|
|
2003-02-24 Jonathan Larmour
|
2003-02-24 Jonathan Larmour
|
|
|
* cdl/dns.cdl: Add doc link.
|
* cdl/dns.cdl: Add doc link.
|
|
|
2003-01-22 Jonathan Larmour
|
2003-01-22 Jonathan Larmour
|
|
|
* doc/dns.sgml: Use correct (and working!) docbook.
|
* doc/dns.sgml: Use correct (and working!) docbook.
|
|
|
2003-01-18 Jonathan Larmour
|
2003-01-18 Jonathan Larmour
|
|
|
* include/dns_impl.inl (setdomainname): define with const name
|
* include/dns_impl.inl (setdomainname): define with const name
|
argument.
|
argument.
|
* include/dns.h: Ditto.
|
* include/dns.h: Ditto.
|
* doc/dns.sgml: Document const in setdomainname proto here.
|
* doc/dns.sgml: Document const in setdomainname proto here.
|
|
|
2003-01-10 Andrew Lunn
|
2003-01-10 Andrew Lunn
|
|
|
* cdl/dns.cdl: Added the ability to hard code a domain name.
|
* cdl/dns.cdl: Added the ability to hard code a domain name.
|
Inspired by Motoya Kurotsu.
|
Inspired by Motoya Kurotsu.
|
* doc/dns.sgml: Documentation for this.
|
* doc/dns.sgml: Documentation for this.
|
|
|
2003-01-10 Motoya Kurotsu
|
2003-01-10 Motoya Kurotsu
|
|
|
* tests/dns2.c: Verify domain name from the DHCP server with
|
* tests/dns2.c: Verify domain name from the DHCP server with
|
_LOOKUP_DOMAINNAME, not _DNS_IP which is the address of the DNS
|
_LOOKUP_DOMAINNAME, not _DNS_IP which is the address of the DNS
|
server.
|
server.
|
|
|
2003-01-09 Andrew Lunn
|
2003-01-09 Andrew Lunn
|
|
|
* cdl/dns.cdl: Added the ability to hard code a DNS server
|
* cdl/dns.cdl: Added the ability to hard code a DNS server
|
address into the image which is used as the default.
|
address into the image which is used as the default.
|
* doc/dns.sgml: Documentation for this.
|
* doc/dns.sgml: Documentation for this.
|
|
|
2002-10-18 Jonathan Larmour
|
2002-10-18 Jonathan Larmour
|
|
|
* cdl/dns.cdl: Move CYGBLD_ISO_DNS_HEADER requires in with
|
* cdl/dns.cdl: Move CYGBLD_ISO_DNS_HEADER requires in with
|
CYGINT_ISO_DNS which is where it should always be beside.
|
CYGINT_ISO_DNS which is where it should always be beside.
|
|
|
2002-10-11 Andrew Lunn
|
2002-10-11 Andrew Lunn
|
|
|
* cdl/dns.cdl: If CYGPKG_NS_DNS_BUILD is disable we don't
|
* cdl/dns.cdl: If CYGPKG_NS_DNS_BUILD is disable we don't
|
implement the CYGINT_ISO_DNS interface.
|
implement the CYGINT_ISO_DNS interface.
|
|
|
2002-08-29 Roland Caßebohm
|
2002-08-29 Roland Caßebohm
|
|
|
* include/dns_priv.h: Make dns_header structure endian dependent.
|
* include/dns_priv.h: Make dns_header structure endian dependent.
|
|
|
* include/dns_impl.inl: Don't use htons() for bitfields <= 8 bit.
|
* include/dns_impl.inl: Don't use htons() for bitfields <= 8 bit.
|
Change the way setting the type and class fields in build_query()
|
Change the way setting the type and class fields in build_query()
|
to work with big-endian.
|
to work with big-endian.
|
|
|
2002-05-30 Jesper Skov
|
2002-05-30 Jesper Skov
|
|
|
* src/dns.c: fixed index->ptdindex oversight.
|
* src/dns.c: fixed index->ptdindex oversight.
|
|
|
2002-05-24 Jonathan Larmour
|
2002-05-24 Jonathan Larmour
|
|
|
* src/dns.c (free_hent): Actually free hent itself!
|
* src/dns.c (free_hent): Actually free hent itself!
|
|
|
2002-05-23 Jonathan Larmour
|
2002-05-23 Jonathan Larmour
|
|
|
* cdl/dns.cdl (CYGPKG_NS_DNS_BUILD): Require thread destructors in
|
* cdl/dns.cdl (CYGPKG_NS_DNS_BUILD): Require thread destructors in
|
kernel.
|
kernel.
|
* include/dns_impl.inl: Instead of using cyg_thread_get_data
|
* include/dns_impl.inl: Instead of using cyg_thread_get_data
|
and _set_data directly, instead use store_hent and free_stored_hent
|
and _set_data directly, instead use store_hent and free_stored_hent
|
defined by includer.
|
defined by includer.
|
* src/dns.c: Define store_hent() and free_stored_hent() and make
|
* src/dns.c: Define store_hent() and free_stored_hent() and make
|
them use thread destructors thus fixing a memory leak.
|
them use thread destructors thus fixing a memory leak.
|
|
|
2002-05-14 Jesper Skov
|
2002-05-14 Jesper Skov
|
|
|
* tests/dns2.c: Fix warning.
|
* tests/dns2.c: Fix warning.
|
|
|
2002-02-22 Hugo Tyson
|
2002-02-22 Hugo Tyson
|
|
|
* doc/dns.sgml: New file. Documentation separated from monolithic
|
* doc/dns.sgml: New file. Documentation separated from monolithic
|
network component.
|
network component.
|
|
|
2002-02-01 Gary Thomas
|
2002-02-01 Gary Thomas
|
|
|
* src/dns.c (cyg_dns_res_init): Need valid value for sin_len.
|
* src/dns.c (cyg_dns_res_init): Need valid value for sin_len.
|
|
|
2002-01-31 Jonathan Larmour
|
2002-01-31 Jonathan Larmour
|
|
|
* cdl/dns.cdl: Don't build tests if no DNS!
|
* cdl/dns.cdl: Don't build tests if no DNS!
|
|
|
2001-12-06 Andrew Lunn
|
2001-12-06 Andrew Lunn
|
|
|
* src/dns.c (cyg_dns_res_init): Allow this to be called more than
|
* src/dns.c (cyg_dns_res_init): Allow this to be called more than
|
once. The DHCP client will do this when interfaces YoYo.
|
once. The DHCP client will do this when interfaces YoYo.
|
Restarting requires closing the socket (if any) and freeing the
|
Restarting requires closing the socket (if any) and freeing the
|
per-thread-data slot number.
|
per-thread-data slot number.
|
|
|
* include/dns_impl.inl (setdomainname): Allow the name to be
|
* include/dns_impl.inl (setdomainname): Allow the name to be
|
cleared. Check for NULL pointers variously before checking for
|
cleared. Check for NULL pointers variously before checking for
|
valid pointer asserts.
|
valid pointer asserts.
|
|
|
* tests/dns2.c: New file: Test the DNS configuration via DHCP.
|
* tests/dns2.c: New file: Test the DNS configuration via DHCP.
|
|
|
* tests/dns1.c: Initially clear the domainname.
|
* tests/dns1.c: Initially clear the domainname.
|
|
|
2001-11-29 Jonathan Larmour
|
2001-11-29 Jonathan Larmour
|
|
|
* src/dns.c: Rename index -> ptdindex to avoid conflict with BSD
|
* src/dns.c: Rename index -> ptdindex to avoid conflict with BSD
|
index() function.
|
index() function.
|
* include/dns_impl.inl: Ditto.
|
* include/dns_impl.inl: Ditto.
|
|
|
2001-09-28 Jesper Skov
|
2001-09-28 Jesper Skov
|
|
|
* tests/dns1.c (_DNS_IP): Changed to IP used in farm.
|
* tests/dns1.c (_DNS_IP): Changed to IP used in farm.
|
|
|
2001-09-27 Jesper Skov
|
2001-09-27 Jesper Skov
|
|
|
* include/dns_priv.h: Added DNS_REPLY definitions.
|
* include/dns_priv.h: Added DNS_REPLY definitions.
|
|
|
* include/dns_impl.inl: Handle NXDomain returns.
|
* include/dns_impl.inl: Handle NXDomain returns.
|
|
|
* include/dns_impl.inl: Added tracing.
|
* include/dns_impl.inl: Added tracing.
|
* src/dns.c: Same.
|
* src/dns.c: Same.
|
|
|
2001-09-26 Jesper Skov
|
2001-09-26 Jesper Skov
|
|
|
* tests/dns1.c (dns_test): Use hstrerror instead of strerror.
|
* tests/dns1.c (dns_test): Use hstrerror instead of strerror.
|
|
|
* include/dns.h: Added h_errno support.
|
* include/dns.h: Added h_errno support.
|
* include/dns_impl.inl: Use h_errno instead of errno. Added
|
* include/dns_impl.inl: Use h_errno instead of errno. Added
|
hstrerror(). Make hostname lookups before hostname.domainmain
|
hstrerror(). Make hostname lookups before hostname.domainmain
|
lookups.
|
lookups.
|
|
|
2001-09-25 Jesper Skov
|
2001-09-25 Jesper Skov
|
|
|
* include/dns.h: Moved some more defs to..
|
* include/dns.h: Moved some more defs to..
|
* include/dns_priv.h: ...here.
|
* include/dns_priv.h: ...here.
|
|
|
* src/dns-priv.h: [deleted]
|
* src/dns-priv.h: [deleted]
|
* include/dns_priv.h: [added]
|
* include/dns_priv.h: [added]
|
|
|
* tests/dns1.c: Include netdb.h instead of dns.h.
|
* tests/dns1.c: Include netdb.h instead of dns.h.
|
|
|
* src/dns.c: Moved all DNS protocol functions into
|
* src/dns.c: Moved all DNS protocol functions into
|
dns_impl.inl. Allow for RedBoot to share the implementation with a
|
dns_impl.inl. Allow for RedBoot to share the implementation with a
|
smaller overhead.
|
smaller overhead.
|
* include/dns_impl.inl: Added.
|
* include/dns_impl.inl: Added.
|
|
|
* cdl/dns.cdl: Moved compile statement and requirements into
|
* cdl/dns.cdl: Moved compile statement and requirements into
|
CYGPKG_NS_DNS_BUILD option which can be forced off by RedBoot.
|
CYGPKG_NS_DNS_BUILD option which can be forced off by RedBoot.
|
Moved headers to cyg/ns/dns.
|
Moved headers to cyg/ns/dns.
|
|
|
* src/dns.c (alloc_hent, free_hent, alloc_string, free_string):
|
* src/dns.c (alloc_hent, free_hent, alloc_string, free_string):
|
Added these wrapper functions for malloc/free calls - allow easier
|
Added these wrapper functions for malloc/free calls - allow easier
|
maintaining of cloned function in RedBoot which uses static
|
maintaining of cloned function in RedBoot which uses static
|
variables for storage. Incidently removed a little code
|
variables for storage. Incidently removed a little code
|
duplication.
|
duplication.
|
|
|
* include/dns.h: Only include exported information.
|
* include/dns.h: Only include exported information.
|
* src/dns-priv.h: Everything else moved to this file.
|
* src/dns-priv.h: Everything else moved to this file.
|
|
|
* cdl/dns.cdl: Added feature requirements and CYGINT_ISO_DNS
|
* cdl/dns.cdl: Added feature requirements and CYGINT_ISO_DNS
|
magic.
|
magic.
|
|
|
* include/dns.h: Renamed res_init to cyg_dns_res_init.
|
* include/dns.h: Renamed res_init to cyg_dns_res_init.
|
* src/dns.c: Same.
|
* src/dns.c: Same.
|
* tests/dns1.c: Same.
|
* tests/dns1.c: Same.
|
|
|
* src/dns.c: Use drv_api mutex, removed some include statements.
|
* src/dns.c: Use drv_api mutex, removed some include statements.
|
* include/dns.h: Provide hostent definition and function
|
* include/dns.h: Provide hostent definition and function
|
declarations.
|
declarations.
|
|
|
* tests/dns1.c: Use cambridge.redhat.com addresses. Changed to
|
* tests/dns1.c: Use cambridge.redhat.com addresses. Changed to
|
output PASS/FAIL.
|
output PASS/FAIL.
|
|
|
* src/dns.c (parse_answer): On PTR lookups, alloc space for
|
* src/dns.c (parse_answer): On PTR lookups, alloc space for
|
in_addr, so caller can copy data there. Fix gethostbyaddr() to
|
in_addr, so caller can copy data there. Fix gethostbyaddr() to
|
do so.
|
do so.
|
Note that error values do not match gethostbyaddr(3).
|
Note that error values do not match gethostbyaddr(3).
|
|
|
2001-09-20 Jesper Skov
|
2001-09-20 Jesper Skov
|
|
|
* src/dns.c: More cosmetic changes, a few htons -> ntohs changes,
|
* src/dns.c: More cosmetic changes, a few htons -> ntohs changes,
|
reducing size of critical section a few places, rely on
|
reducing size of critical section a few places, rely on
|
build_query setting errno, and set errno when getdomainname can't
|
build_query setting errno, and set errno when getdomainname can't
|
copy domain name out due to size limitation.
|
copy domain name out due to size limitation.
|
|
|
2001-09-19 Jesper Skov
|
2001-09-19 Jesper Skov
|
|
|
* tests/dns1.c (dns_test): Fix inet_aton check.
|
* tests/dns1.c (dns_test): Fix inet_aton check.
|
* src/dns.c: A few comment and cosmetic changes.
|
* src/dns.c: A few comment and cosmetic changes.
|
|
|
2001-09-18 Jesper Skov
|
2001-09-18 Jesper Skov
|
|
|
* src/dns.c: Added DNS code contributed by Andrew Lunn
|
* src/dns.c: Added DNS code contributed by Andrew Lunn
|
|
|
* include/dns.h: Same.
|
* include/dns.h: Same.
|
* tests/dns1.c: Same.
|
* tests/dns1.c: Same.
|
|
|
//===========================================================================
|
//===========================================================================
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
// -------------------------------------------
|
// -------------------------------------------
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
//
|
//
|
// eCos is free software; you can redistribute it and/or modify it under
|
// 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
|
// 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.
|
// 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
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
// for more details.
|
// for more details.
|
//
|
//
|
// You should have received a copy of the GNU General Public License along
|
// You should have received a copy of the GNU General Public License along
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
//
|
//
|
// As a special exception, if other files instantiate templates or use macros
|
// 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
|
// 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
|
// 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
|
// 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
|
// License. However the source code for this file must still be made available
|
// in accordance with section (3) of the GNU General Public License.
|
// 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 exception does not invalidate any other reasons why a work based on
|
// this file might be covered by the GNU General Public License.
|
// this file might be covered by the GNU General Public License.
|
//
|
//
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
// at http://sources.redhat.com/ecos/ecos-license/
|
// at http://sources.redhat.com/ecos/ecos-license/
|
// -------------------------------------------
|
// -------------------------------------------
|
//####ECOSGPLCOPYRIGHTEND####
|
//####ECOSGPLCOPYRIGHTEND####
|
//===========================================================================
|
//===========================================================================
|
|
|