1/*
| 1/*
|
2 * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
| 2 * Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
|
3 * Copyright (C) 2000, 2001 Internet Software Consortium. 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 * PERFORMANCE OF THIS SOFTWARE. 16 */ 17
| 3 * Copyright (C) 2000, 2001 Internet Software Consortium. 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 * PERFORMANCE OF THIS SOFTWARE. 16 */ 17
|
18/* $Id: lwderror.c,v 1.7.208.1 2004/03/06 10:21:18 marka Exp $ */
| 18/* $Id: lwderror.c,v 1.8.18.2 2005/04/29 00:15:24 marka Exp $ */
|
19
| 19
|
| 20/*! \file */ 21
|
20#include <config.h> 21 22#include <isc/socket.h> 23#include <isc/util.h> 24 25#include <named/types.h> 26#include <named/lwdclient.h> 27
| 22#include <config.h> 23 24#include <isc/socket.h> 25#include <isc/util.h> 26 27#include <named/types.h> 28#include <named/lwdclient.h> 29
|
28/*
| 30/*%
|
29 * Generate an error packet for the client, schedule a send, and put us in 30 * the SEND state. 31 * 32 * The client->pkt structure will be modified to form an error return. 33 * The receiver needs to verify that it is in fact an error, and do the 34 * right thing with it. The opcode will be unchanged. The result needs 35 * to be set before calling this function. 36 *
--- 42 unchanged lines hidden --- | 31 * Generate an error packet for the client, schedule a send, and put us in 32 * the SEND state. 33 * 34 * The client->pkt structure will be modified to form an error return. 35 * The receiver needs to verify that it is in fact an error, and do the 36 * right thing with it. The opcode will be unchanged. The result needs 37 * to be set before calling this function. 38 *
--- 42 unchanged lines hidden --- |