Deleted Added
full compact
res_update.c (158787) res_update.c (170244)
1#if !defined(lint) && !defined(SABER)
1#if !defined(lint) && !defined(SABER)
2static const char rcsid[] = "$Id: res_update.c,v 1.6.2.4.4.2 2004/03/16 12:34:20 marka Exp $";
2static const char rcsid[] = "$Id: res_update.c,v 1.12.18.1 2005/04/27 05:01:12 sra Exp $";
3#endif /* not lint */
4
5/*
6 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
7 * Copyright (c) 1996-1999 by Internet Software Consortium.
8 *
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
19 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 */
21
3#endif /* not lint */
4
5/*
6 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
7 * Copyright (c) 1996-1999 by Internet Software Consortium.
8 *
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
19 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20 */
21
22/*
22/*! \file
23 * \brief
23 * Based on the Dynamic DNS reference implementation by Viraj Bais
24 * Based on the Dynamic DNS reference implementation by Viraj Bais
24 * <viraj_bais@ccm.fm.intel.com>
25 * &lt;viraj_bais@ccm.fm.intel.com>
25 */
26
27#include <sys/cdefs.h>
26 */
27
28#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/resolv/res_update.c 158787 2006-05-21 11:19:36Z ume $");
29__FBSDID("$FreeBSD: head/lib/libc/resolv/res_update.c 170244 2007-06-03 17:20:27Z ume $");
29
30#include "port_before.h"
31
32#include <sys/param.h>
33#include <sys/socket.h>
34#include <sys/time.h>
35
36#include <netinet/in.h>

--- 10 unchanged lines hidden (view full) ---

47#include <string.h>
48
49#include <isc/list.h>
50#include <resolv.h>
51
52#include "port_after.h"
53#include "res_private.h"
54
30
31#include "port_before.h"
32
33#include <sys/param.h>
34#include <sys/socket.h>
35#include <sys/time.h>
36
37#include <netinet/in.h>

--- 10 unchanged lines hidden (view full) ---

48#include <string.h>
49
50#include <isc/list.h>
51#include <resolv.h>
52
53#include "port_after.h"
54#include "res_private.h"
55
55/*
56/*%
56 * Separate a linked list of records into groups so that all records
57 * in a group will belong to a single zone on the nameserver.
58 * Create a dynamic update packet for each zone and send it to the
59 * nameservers for that zone, and await answer.
60 * Abort if error occurs in updating any zone.
61 * Return the number of zones updated on success, < 0 on error.
62 *
63 * On error, caller must deal with the unsynchronized zones

--- 158 unchanged lines hidden ---
57 * Separate a linked list of records into groups so that all records
58 * in a group will belong to a single zone on the nameserver.
59 * Create a dynamic update packet for each zone and send it to the
60 * nameservers for that zone, and await answer.
61 * Abort if error occurs in updating any zone.
62 * Return the number of zones updated on success, < 0 on error.
63 *
64 * On error, caller must deal with the unsynchronized zones

--- 158 unchanged lines hidden ---