Home | History | Annotate | Download | only in tools

Lines Matching refs:optarg

3617 			if (strncasecmp(optarg, "0x", 2))
3618 si.handle = atoi(optarg);
3620 si.handle = strtol(optarg + 2, NULL, 16);
3623 if (strncasecmp(optarg, "0x", 2))
3624 si.psm = atoi(optarg);
3626 si.psm = strtol(optarg + 2, NULL, 16);
3629 if (strncasecmp(optarg, "0x", 2))
3630 si.channel = atoi(optarg);
3632 si.channel = strtol(optarg + 2, NULL, 16);
3635 if (strncasecmp(optarg, "0x", 2))
3636 si.network = atoi(optarg);
3638 si.network = strtol(optarg + 2, NULL, 16);
3877 if (sscanf(optarg, "%i", &num) != 1 || num < 0 || num > 0xffff) {
3878 printf("Invalid uuid %s\n", optarg);
3942 estr2ba(optarg, &bdaddr);
4162 estr2ba(optarg, &bdaddr);
4252 if (!strncmp(optarg, "hci", 3))
4253 hci_devba(atoi(optarg + 3), &interface);
4255 str2ba(optarg, &interface);