• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/ofed/infiniband-diags/src/

Lines Matching defs:optarg

1550 static int process_opt(void *context, int ch, char *optarg)
1557 src_lid = strdup(optarg);
1568 char *src_addr = strdup(optarg);
1583 node_name_map_file = strdup(optarg);
1586 if (!isxdigit(*optarg) && !(optarg = getpass("SM_Key: "))) {
1590 ibd_sakey = strtoull(optarg, NULL, 0);
1644 p->slid = (uint16_t) strtoul(optarg, NULL, 0);
1647 p->dlid = (uint16_t) strtoul(optarg, NULL, 0);
1650 p->mlid = (uint16_t) strtoul(optarg, NULL, 0);
1653 if (inet_pton(AF_INET6, optarg, &p->sgid) <= 0)
1657 if (inet_pton(AF_INET6, optarg, &p->dgid) <= 0)
1661 if (inet_pton(AF_INET6, optarg, &p->gid) <= 0)
1665 if (inet_pton(AF_INET6, optarg, &p->mgid) <= 0)
1669 p->reversible = strtoul(optarg, NULL, 0);
1672 p->numb_path = strtoul(optarg, NULL, 0);
1675 if (!isxdigit(*optarg) && !(optarg = getpass("P_Key: "))) {
1679 p->pkey = (uint16_t) strtoul(optarg, NULL, 0);
1682 p->qos_class = strtoul(optarg, NULL, 0);
1685 p->sl = strtoul(optarg, NULL, 0);
1688 p->mtu = (uint8_t) strtoul(optarg, NULL, 0);
1691 p->rate = (uint8_t) strtoul(optarg, NULL, 0);
1694 p->pkt_life = (uint8_t) strtoul(optarg, NULL, 0);
1697 if (!isxdigit(*optarg) && !(optarg = getpass("Q_Key: "))) {
1701 p->qkey = strtoul(optarg, NULL, 0);
1704 p->tclass = (uint8_t) strtoul(optarg, NULL, 0);
1707 p->flow_label = strtoul(optarg, NULL, 0);
1710 p->hop_limit = strtoul(optarg, NULL, 0);
1713 p->scope = (uint8_t) strtoul(optarg, NULL, 0);
1716 p->join_state = (uint8_t) strtoul(optarg, NULL, 0);
1719 p->proxy_join = strtoul(optarg, NULL, 0);
1722 p->service_id = strtoull(optarg, NULL, 0);
1729 if (inet_pton(AF_INET6, optarg, &p->sa_dgid) <= 0)