Deleted Added
full compact
res_mkupdate.c (297790) res_mkupdate.c (298120)
1/*
2 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (c) 1996-1999 by 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 *

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

20 * Based on the Dynamic DNS reference implementation by Viraj Bais
21 * <viraj_bais@ccm.fm.intel.com>
22 */
23
24#if !defined(lint) && !defined(SABER)
25static const char rcsid[] = "$Id: res_mkupdate.c,v 1.10 2008/12/11 09:59:00 marka Exp $";
26#endif /* not lint */
27#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (c) 1996-1999 by 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 *

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

20 * Based on the Dynamic DNS reference implementation by Viraj Bais
21 * &lt;viraj_bais@ccm.fm.intel.com>
22 */
23
24#if !defined(lint) && !defined(SABER)
25static const char rcsid[] = "$Id: res_mkupdate.c,v 1.10 2008/12/11 09:59:00 marka Exp $";
26#endif /* not lint */
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/lib/libc/resolv/res_mkupdate.c 297790 2016-04-10 19:33:58Z pfg $");
28__FBSDID("$FreeBSD: head/lib/libc/resolv/res_mkupdate.c 298120 2016-04-16 17:52:00Z pfg $");
29
30#include "port_before.h"
31
32#include <sys/types.h>
33#include <sys/param.h>
34
35#include <netinet/in.h>
36#include <arpa/nameser.h>

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

122 hp->id = htons(statp->id);
123 hp->opcode = ns_o_update;
124 hp->rcode = NOERROR;
125 cp = buf + HFIXEDSZ;
126 buflen -= HFIXEDSZ;
127 dpp = dnptrs;
128 *dpp++ = buf;
129 *dpp++ = NULL;
29
30#include "port_before.h"
31
32#include <sys/types.h>
33#include <sys/param.h>
34
35#include <netinet/in.h>
36#include <arpa/nameser.h>

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

122 hp->id = htons(statp->id);
123 hp->opcode = ns_o_update;
124 hp->rcode = NOERROR;
125 cp = buf + HFIXEDSZ;
126 buflen -= HFIXEDSZ;
127 dpp = dnptrs;
128 *dpp++ = buf;
129 *dpp++ = NULL;
130 lastdnptr = dnptrs + sizeof dnptrs / sizeof dnptrs[0];
130 lastdnptr = dnptrs + nitems(dnptrs);
131
132 if (rrecp_start == NULL)
133 return (-5);
134 else if (rrecp_start->r_section != S_ZONE)
135 return (-3);
136
137 memset(counts, 0, sizeof counts);
138 for (rrecp = rrecp_start; rrecp; rrecp = NEXT(rrecp, r_glink)) {

--- 1061 unchanged lines hidden ---
131
132 if (rrecp_start == NULL)
133 return (-5);
134 else if (rrecp_start->r_section != S_ZONE)
135 return (-3);
136
137 memset(counts, 0, sizeof counts);
138 for (rrecp = rrecp_start; rrecp; rrecp = NEXT(rrecp, r_glink)) {

--- 1061 unchanged lines hidden ---