}
#endif
-static const char *
+static void
set_option_space(struct dhcpcd_ctx *ctx,
const char *arg,
const struct dhcp_opt **d, size_t *dl,
*require = ifo->requiremasknd;
*no = ifo->nomasknd;
*reject = ifo->rejectmasknd;
- return arg + strlen("nd_");
+ return;
}
#ifdef DHCP6
*require = ifo->requiremask6;
*no = ifo->nomask6;
*reject = ifo->rejectmask6;
- return arg + strlen("dhcp6_");
+ return;
}
#endif
#endif
*require = ifo->requiremask;
*no = ifo->nomask;
*reject = ifo->rejectmask;
- return arg;
}
void
break;
case 'o':
ARG_REQUIRED;
- arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
+ set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
&request, &require, &no, &reject);
if (make_option_mask(d, dl, od, odl, request, arg, 1) != 0 ||
make_option_mask(d, dl, od, odl, no, arg, -1) != 0 ||
break;
case O_REJECT:
ARG_REQUIRED;
- arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
+ set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
&request, &require, &no, &reject);
if (make_option_mask(d, dl, od, odl, reject, arg, 1) != 0 ||
make_option_mask(d, dl, od, odl, request, arg, -1) != 0 ||
break;
case 'O':
ARG_REQUIRED;
- arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
+ set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
&request, &require, &no, &reject);
if (make_option_mask(d, dl, od, odl, request, arg, -1) != 0 ||
make_option_mask(d, dl, od, odl, require, arg, -1) != 0 ||
break;
case 'Q':
ARG_REQUIRED;
- arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
+ set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
&request, &require, &no, &reject);
if (make_option_mask(d, dl, od, odl, require, arg, 1) != 0 ||
make_option_mask(d, dl, od, odl, request, arg, 1) != 0 ||
break;
case O_DESTINATION:
ARG_REQUIRED;
- arg = set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
+ set_option_space(ctx, arg, &d, &dl, &od, &odl, ifo,
&request, &require, &no, &reject);
if (make_option_mask(d, dl, od, odl,
ifo->dstmask, arg, 2) != 0)