null_10.c revision 82ca33427bdd4f3bc4ed3431e86bd810fe751674
2f072c2982861ec2e86e97f8a3ed199fe45c1f70Michael Graff * Copyright (C) 1998, 1999, 2000 Internet Software Consortium.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * Permission to use, copy, modify, and distribute this software for any
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * purpose with or without fee is hereby granted, provided that the above
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * copyright notice and this permission notice appear in all copies.
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
3ddd814a97de1d152ba0913c592d6e6dc83d38a6Michael Graff/* $Id: null_10.c,v 1.22 2000/04/28 01:24:06 gson Exp $ */
854d0238dbc2908490197984b3b9d558008a53dfMark Andrews/* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfromtext_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
deaaf94332abbfdb3aff53675546acfed16e5eb6Mark Andrewstotext_null(dns_rdata_t *rdata, dns_rdata_textctx_t *tctx,
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsfromwire_null(dns_rdataclass_t rdclass, dns_rdatatype_t type,
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson isc_buffer_t *source, dns_decompress_t *dctx,
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews return (mem_tobuffer(target, sr.base, sr.length));
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewstowire_null(dns_rdata_t *rdata, dns_compress_t *cctx, isc_buffer_t *target)
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrews return (mem_tobuffer(target, rdata->data, rdata->length));
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsstatic inline int
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewscompare_null(dns_rdata_t *rdata1, dns_rdata_t *rdata2)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafsson REQUIRE(rdata1->rdclass == rdata2->rdclass);
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonfromstruct_null(dns_rdataclass_t rdclass, dns_rdatatype_t type, void *source,
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssontostruct_null(dns_rdata_t *rdata, void *target, isc_mem_t *mctx)
5fc7ba3e1ac5d72239e9971e0f469dd5796738f9Andreas Gustafssonstatic inline void
5d51e67c3b4f35c1be742574aacc1d88fe6ed444Mark Andrewsadditionaldata_null(dns_rdata_t *rdata, dns_additionaldatafunc_t add,
d981ca645597116d227a48bf37cc5edc061c854dBob Halleydigest_null(dns_rdata_t *rdata, dns_digestfunc_t digest, void *arg)
deaaf94332abbfdb3aff53675546acfed16e5eb6Mark Andrews#endif /* RDATA_GENERIC_NULL_10_C */