Lines Matching refs:opt
51 struct dhcp_option *opt;
63 opt = dd_getopt(scode, arg, NULL);
66 if (opt == NULL) {
71 if (opt->error_code != 0) {
72 throw_bridge_exception(env, opt->u.msg);
73 dd_freeopt(opt);
78 jstr = (*env)->NewStringUTF(env, opt->u.ret.data.strings[0]);
79 dd_freeopt(opt);
100 struct dhcp_option *opt;
125 opt = dd_getopt(scode, arg, NULL);
128 if (opt == NULL) {
133 if (opt->error_code != 0) {
134 throw_bridge_exception(env, opt->u.msg);
135 dd_freeopt(opt);
140 jlist = (*env)->NewObjectArray(env, opt->u.ret.count, ip_class, NULL);
143 dd_freeopt(opt);
148 for (i = 0; i < opt->u.ret.count; ++i) {
150 inet_ntoa(*opt->u.ret.data.addrs[i]));
167 dd_freeopt(opt);
184 struct dhcp_option *opt;
197 opt = dd_getopt(scode, arg, NULL);
200 if (opt == NULL) {
205 if (opt->error_code != 0) {
206 throw_bridge_exception(env, opt->u.msg);
207 dd_freeopt(opt);
212 list = (*env)->NewLongArray(env, opt->u.ret.count);
215 dd_freeopt(opt);
223 dd_freeopt(opt);
227 for (i = 0; i < opt->u.ret.count; ++i) {
228 listel[i] = opt->u.ret.data.numbers[i];
234 dd_freeopt(opt);