Searched refs:metric (Results 1 - 12 of 12) sorted by relevance

/haiku/headers/os/net/
H A DNetworkInterface.h84 status_t SetMetric(uint32 metric);
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_hwmp.c903 * Update forwarding information to TA if metric improves.
911 int metric = 0; local
924 metric = ms->ms_pmetric->mpm_metric(ni);
926 rttran->rt_metric > metric)
929 "%s path to transmitter %6D of %s, metric %d:%d",
932 rttran->rt_metric, metric);
934 rttran->rt_metric = metric;
956 uint32_t metric = 0; local
1027 metric = preq->preq_metric + ms->ms_pmetric->mpm_metric(ni);
1030 metric < rtori
1281 uint32_t metric = 0; local
[all...]
H A Dieee80211_mesh.c2904 ni, "send LINK METRIC REPLY action: metric 0x%x",
2919 * mesh link metric
2922 * [tlv] mesh link metric
2959 * mesh link metric
3114 "unknown path metric algorithm: 0x%x\n",
3203 * For now just use HWMP routing, Airtime link metric, Null Congestion
3217 *frm++ = ms->ms_pmetric->mpm_ie; /* link metric */
3325 ieee80211_add_meshlmetric(uint8_t *frm, uint8_t flags, uint32_t metric) argument
3330 ADDWORD(frm, metric);
/haiku/src/servers/net/
H A DNetServer.cpp439 int32 metric; local
440 if (message.FindInt32("metric", &metric) != B_OK)
441 metric = -1;
537 if (metric != -1) {
538 status_t status = interface.SetMetric(metric);
540 fprintf(stderr, "%s: Setting metric failed: %s\n", Name(),
/haiku/src/kits/network/libnetapi/
H A DNetworkInterface.cpp338 BNetworkInterface::SetMetric(uint32 metric) argument
341 request.ifr_metric = metric;
H A DNetworkSettings.cpp83 {B_INT32_TYPE, "metric", NULL},
1113 fMetric = message.GetInt32("metric", 0);
1179 BNetworkInterfaceSettings::SetMetric(int32 metric) argument
1181 fMetric = metric;
1283 status = data.SetInt32("metric", fMetric);
/haiku/headers/os/add-ons/network_settings/
H A DNetworkSettings.h173 void SetMetric(int32 metric);
/haiku/headers/private/net/
H A Dnet_datalink.h51 uint32 metric; member in struct:net_interface
/haiku/src/bin/network/ifconfig/
H A Difconfig.cpp87 " metric <number> - metric number to use (defaults to 0)\n"
571 // Print MTU, metric, flags
737 int mtu = -1, metric = -1, media = -1; local
802 } else if (!strcmp(args[i], "metric")) {
804 fprintf(stderr, "%s: Option 'metric' expected parameter\n",
808 metric = strtol(args[i + 1], NULL, 0);
911 if (metric != -1) {
912 status_t status = interface.SetMetric(metric);
914 fprintf(stderr, "%s: Setting metric faile
[all...]
/haiku/src/add-ons/kernel/network/stack/
H A Ddatalink.cpp77 CODE(SIOCGIFMETRIC) /* get interface metric */
78 CODE(SIOCSIFMETRIC) /* set interface metric */
968 // get metric
970 request.ifr_metric = interface->metric;
977 // set metric
982 interface->metric = request.ifr_metric;
H A Dinterfaces.cpp467 metric = 0;
1051 kprintf("metric: %" B_PRIu32 "\n", metric);
/haiku/src/kits/interface/
H A DHaikuControlLook.cpp3005 const float metric = roundf(rect.Width() * 3.125f) / 10.0f, local
3006 offset = ceilf((metric * 0.2f) * 10.0f) / 10.0f;
3008 triangle[0] = center + BPoint(-metric, -offset);
3009 triangle[1] = center + BPoint(metric, -offset);
3010 triangle[2] = center + BPoint(0.0, metric * 0.8f);

Completed in 98 milliseconds