/*
 * @(#)InetAddress.c	1.7 98/09/21
 *
 * Copyright 1997, 1998 by Sun Microsystems, Inc.,
 * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
 * All rights reserved.
 * 
 * This software is the confidential and proprietary information
 * of Sun Microsystems, Inc. ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Sun.
 */

#include <string.h>

#include "jvm_utils.h"
#include "java_net_InetAddress.h"

/************************************************************************
 * InetAddress
 */

jfieldID ia_addressID;
jfieldID ia_familyID;

/*
 * Class:     java_net_InetAddress
 * Method:    init
 * Signature: ()V 
 */
JNIEXPORT void JNICALL
Java_java_net_InetAddress_init(JNIEnv *env, jclass cls) {
    ia_addressID = (*env)->GetFieldID(env, cls, "address", "[B");
    ia_familyID = (*env)->GetFieldID(env, cls, "family", "I");
#ifdef HOST
    res_init();
    _res.options |= RES_USE_INET6;
#endif //HOST
}
