dect
/
libnl
Archived
13
0
Fork 0
This commit is contained in:
Patrick McHardy 2010-09-02 02:08:59 +02:00
parent edaf9cac24
commit 432a1a31f2
1 changed files with 5 additions and 0 deletions

View File

@ -24,10 +24,12 @@ int main(int argc, char *argv[])
enum {
ARG_TRANSCEIVER = 257,
ARG_CELL,
ARG_UNBIND,
};
static struct option long_opts[] = {
{ "transceiver", 1, 0, ARG_TRANSCEIVER },
{ "cell", 1, 0, ARG_CELL },
{ "unbind", 0, 0, ARG_UNBIND },
{ 0, 0, 0, 0 }
};
@ -43,6 +45,9 @@ int main(int argc, char *argv[])
case ARG_CELL:
nl_dect_transceiver_set_link(trx, nl_dect_cell_name2i(cell_cache, optarg));
break;
case ARG_UNBIND:
nl_dect_transceiver_set_link(trx, -1);
break;
}
}