1fceb383a3f0b59711832b9dc4e8329d7f216604semery * CDDL HEADER START
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * The contents of this file are subject to the terms of the
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * Common Development and Distribution License (the "License").
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * You may not use this file except in compliance with the License.
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * See the License for the specific language governing permissions
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * and limitations under the License.
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * When distributing Covered Code, include this CDDL HEADER in each
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * If applicable, add the following below this CDDL HEADER, with the
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * fields enclosed by brackets "[]" replaced with your own identifying
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * information: Portions Copyright [yyyy] [name of copyright owner]
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * CDDL HEADER END
bd211b8556ef6b18ebf137419bd5555d65271664semery * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1fceb383a3f0b59711832b9dc4e8329d7f216604semery * Use is subject to license terms.
9c62f9ec8ed42265fb80cb8d6873fabfae3941abMarcel Telka * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
bd211b8556ef6b18ebf137419bd5555d65271664semery * Private resolver of target and type with arguments:
bd211b8556ef6b18ebf137419bd5555d65271664semery * klooukp [ target [ RR_type ] ]
bd211b8556ef6b18ebf137419bd5555d65271664semery * Utitilizes DNS lookups to discover domain and realm information. This CLI
bd211b8556ef6b18ebf137419bd5555d65271664semery * is used primarily by kdcmgr(1M) and kclient(1M).
1fceb383a3f0b59711832b9dc4e8329d7f216604semery/* ARGSUSED */
bd211b8556ef6b18ebf137419bd5555d65271664semery unsigned char answer[NS_MAXMSG], *ansp = NULL, *end, a, b, c, d;
bd211b8556ef6b18ebf137419bd5555d65271664semery &a, &b, &c, &d);
bd211b8556ef6b18ebf137419bd5555d65271664semery d, c, b, a);
bd211b8556ef6b18ebf137419bd5555d65271664semery len = res_nsearch(&stat, name, C_IN, rr_type, answer, anslen);
1fceb383a3f0b59711832b9dc4e8329d7f216604semery /* LINTED */
1fceb383a3f0b59711832b9dc4e8329d7f216604semery return (0);