Skip to content
Snippets Groups Projects
Commit 9f40a004 authored by Amit Kumar's avatar Amit Kumar
Browse files

qosmngr: handling to get number of queue

parent 56ebfed1
No related branches found
No related tags found
No related merge requests found
Pipeline #89245 passed
...@@ -89,11 +89,12 @@ int main(int argc, char **argv) ...@@ -89,11 +89,12 @@ int main(int argc, char **argv)
{ {
int ret; int ret;
int ch; int ch;
int num_of_q;
/* Logging to syslog */ /* Logging to syslog */
openlog("qosmngr", LOG_PID|LOG_CONS, LOG_LOCAL1); openlog("qosmngr", LOG_PID|LOG_CONS, LOG_LOCAL1);
while ((ch = getopt(argc, argv, "vs:e:")) != -1) { while ((ch = getopt(argc, argv, "vsq:e:")) != -1) {
switch (ch) { switch (ch) {
case 'v': case 'v':
qosmngr_version(); qosmngr_version();
...@@ -101,6 +102,10 @@ int main(int argc, char **argv) ...@@ -101,6 +102,10 @@ int main(int argc, char **argv)
case 's': case 's':
ubus_socket = optarg; ubus_socket = optarg;
break; break;
case 'q':
num_of_q = qos_get_num_of_queue(argv[argc-1]);
printf("%d", num_of_q);
exit(0);
default: default:
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment