optiondefs.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1999-2001 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <libintl.h>
#include <jni.h>
#include <com_sun_dhcpmgr_bridge_Bridge.h>
#include "exception.h"
#include "dd_opt.h"
#include "class_cache.h"
/*
* Retrieve default value for an option with a string value. Returns a
* single String.
*/
/*ARGSUSED*/
{
struct dhcp_option *opt;
const char *arg;
/* Get the option whose default value we want to generate. */
/* exception thrown */
return (NULL);
}
/* Get the option data */
return (NULL);
}
if (opt->error_code != 0) {
return (NULL);
}
/* Set the return value */
return (jstr);
}
/*
* Get the default value for an option whose value is one or more IP
* addresses. Returns an array of IPAddress objects.
*/
/*ARGSUSED*/
{
struct dhcp_option *opt;
int i;
const char *arg;
/* Get classes and methods we need */
/* exception thrown */
return (NULL);
}
/* exception thrown */
return (NULL);
}
/* Retrieve option to generate value for */
/* exception thrown */
return (NULL);
}
/* Go get the default value */
return (NULL);
}
if (opt->error_code != 0) {
return (NULL);
}
/* Construct the array */
/* exception thrown */
return (NULL);
}
/* For each address, create an object and add it to the array */
/* exception thrown */
break;
}
/* exception thrown */
break;
}
break;
}
}
return (jlist);
}
/*
* Generate the default value for an option whose value is a list of numbers.
* Returns an array of longs.
*/
/*ARGSUSED*/
{
struct dhcp_option *opt;
const char *arg;
int i;
/* Get option to retrieve */
/* exception thrown */
return (NULL);
}
return (NULL);
}
if (opt->error_code != 0) {
return (NULL);
}
/* Allocate return array */
/* exception thrown */
return (NULL);
}
/* Get access to elements of return array, then copy data in */
/* exception thrown */
return (NULL);
}
}
/* Tell VM we're done so it can finish putting data back */
return (list);
}