Home
last modified time | relevance | path

Searched refs:priority (Results 1 – 25 of 35) sorted by relevance

12

/openthread-3.4.0/tests/unit/
Dtest_spinel_buffer.cpp88 for (uint8_t priority = 0; priority < kNumPrios; priority++) in ClearTagHistory() local
90 sTagHistoryHead[priority] = sTagHistoryTail[priority]; in ClearTagHistory()
96 uint8_t priority = static_cast<uint8_t>(aPriority); in AddTagToHistory() local
98 sTagHistoryArray[priority][sTagHistoryTail[priority]] = aTag; in AddTagToHistory()
100 if (++sTagHistoryTail[priority] == kTagArraySize) in AddTagToHistory()
102 sTagHistoryTail[priority] = 0; in AddTagToHistory()
105 VerifyOrQuit(sTagHistoryTail[priority] != sTagHistoryHead[priority], in AddTagToHistory()
111 uint8_t priority = static_cast<uint8_t>(aPriority); in VerifyAndRemoveTagFromHistory() local
113 VerifyOrQuit(sTagHistoryHead[priority] != sTagHistoryTail[priority], "Tag history is empty,"); in VerifyAndRemoveTagFromHistory()
114 VerifyOrQuit(aTag == sTagHistoryArray[priority][sTagHistoryHead[priority]], in VerifyAndRemoveTagFromHistory()
[all …]
DCMakeLists.txt879 add_executable(ot-test-priority-queue
883 target_include_directories(ot-test-priority-queue
888 target_compile_options(ot-test-priority-queue
893 target_link_libraries(ot-test-priority-queue
898 add_test(NAME ot-test-priority-queue COMMAND ot-test-priority-queue)
/openthread-3.4.0/tests/toranj/ncp/
Dtest-010-on-mesh-prefix-config-gateway.py65 priority='med', argument
88 verify(p.priority == priority)
155 r2.config_gateway(prefix2, default_route=True, priority='1')
166 priority='high',
174 sc1.config_gateway(prefix3, priority='-1')
184 priority='low',
211 priority="1",
227 priority="high",
253 priority="-1",
266 priority="low",
Dtest-036-wpantund-host-route-management.py155 r2.add_route(ROUTE1, prefix_len=LEN1, priority=LOW_PRIORITY)
156 r2.add_route(ROUTE2, prefix_len=LEN2, priority=MEDIUM_PRIORITY)
157 r2.add_route(ROUTE3, prefix_len=LEN3, priority=HIGH_PRIORITY)
171 r3.add_route(ROUTE1, prefix_len=LEN1, priority=MEDIUM_PRIORITY)
172 r3.add_route(ROUTE2, prefix_len=LEN2, priority=LOW_PRIORITY)
217 r1.add_route(ROUTE1, prefix_len=LEN1, priority=LOW_PRIORITY)
225 r1.add_route(ROUTE1, prefix_len=LEN1, priority=MEDIUM_PRIORITY)
230 r1.add_route(ROUTE2, prefix_len=LEN2, priority=MEDIUM_PRIORITY)
235 r1.add_route(ROUTE4, prefix_len=LEN4, priority=MEDIUM_METRIC)
254 r1.add_route(ROUTE1, prefix_len=LEN1, priority=LOW_PRIORITY)
Dtest-024-partition-merge.py65 priority='med', argument
88 verify(p.priority == priority)
Dtest-037-wpantund-auto-add-route-for-on-mesh-prefix.py130 r2.add_route(ROUTE5, prefix_len=LEN5, priority=MEDIUM_PRIORITY)
180 r2.add_route(ROUTE5, prefix_len=LEN5, priority=MEDIUM_PRIORITY)
181 r2.add_route(ROUTE4, prefix_len=LEN4, priority=MEDIUM_PRIORITY)
Dtest-025-network-data-timeout.py63 priority='med', argument
87 verify(p.priority == priority)
Dtest-026-slaac-address-wpantund.py70 priority='med', argument
87 … p.is_config() == configure and p.is_preferred() == preferred and p.priority == priority):
Dwpan.py484 def config_gateway(self, prefix, default_route=False, priority=None): argument
486 (' -P {}'.format(priority) if priority is not None else ''))
491 priority=None, argument
500 … (' -P {}'.format(priority) if priority is not None else '') + (' -s' if stable else '') +
509 def add_route(self, route_prefix, prefix_len=None, priority=None, stable=True): argument
513 … (' -p {}'.format(priority) if priority is not None else '') + ('' if stable else ' -n'))
515 def remove_route(self, route_prefix, prefix_len=None, priority=None, stable=True): argument
519 (' -p {}'.format(priority) if priority is not None else ''))
1193 def priority(self): member in OnMeshPrefix
Dtest-040-network-data-stable-full.py67 priority='med', argument
91 verify(p.priority == priority)
Dtest-030-slaac-address-ncp.py78 priority='med', argument
95 … p.is_config() == configure and p.is_preferred() == preferred and p.priority == priority):
Dtest-015-same-prefix-on-multiple-nodes.py100 not p.is_config() and p.priority == "med"):
Dtest-014-ip6-address-add.py144 verify(p.priority == "med")
/openthread-3.4.0/src/core/common/
Dmessage.cpp360 uint8_t priority = static_cast<uint8_t>(aPriority); in SetPriority() local
365 VerifyOrExit(priority < kNumPriorities, error = kErrorInvalidArgs); in SetPriority()
367 VerifyOrExit(IsInAQueue(), GetMetadata().mPriority = priority); in SetPriority()
368 VerifyOrExit(GetMetadata().mPriority != priority); in SetPriority()
377 GetMetadata().mPriority = priority; in SetPriority()
932 uint8_t priority; in FindFirstNonNullTail() local
934 priority = static_cast<uint8_t>(aStartPriorityLevel); in FindFirstNonNullTail()
938 if (mTails[priority] != nullptr) in FindFirstNonNullTail()
940 tail = mTails[priority]; in FindFirstNonNullTail()
944 priority = PrevPriority(priority); in FindFirstNonNullTail()
[all …]
/openthread-3.4.0/src/cli/
DREADME_SRP_CLIENT.md103 instance:"ins2", name:"_test2._udp", state:Registered, port:111, priority:1, weight:1
104 … instance:"ins1", name:"_test1._udp,_sub1,_sub2", state:Registered, port:777, priority:0, weight:0
114 instance:"ins1", name:"_test1._udp", state:Registered, port:777, priority:0, weight:0
116 instance:"ins2", name:"_test2._udp,_sub1,_sub2", state:Removed, port:111, priority:1, weight:1
127 instance:"ins1", name:"_test1._udp", state:Removed, port:777, priority:0, weight:0
332 instance:"ins2", name:"_test2._udp,_sub1,_sub2", state:Registered, port:111, priority:1, weight:1
333 instance:"ins1", name:"_test1._udp", state:Registered, port:777, priority:0, weight:0
339 Usage: `srp client service add <instancename> <servicename> <port> [priority] [weight] [txt]`
341 Add a service with a given instance name, service name, port number, priority, weight and txt value…
345 The priority and weight are optional and if not provided zero will be used. The txt should follow h…
DREADME_SRP_SERVER.md181 priority: 0
193 priority: 0
DREADME_SRP.md114 instance:"my-service", name:"_ipps._tcp", state:Registered, port:12345, priority:0, weight:0
132 priority: 0
/openthread-3.4.0/src/core/meshcop/
Djoiner.cpp234 int16_t priority; in CalculatePriority() local
242 priority = Clamp<int8_t>(aRssi, -127, -1); in CalculatePriority()
250 priority += aSteeringDataAllowsAny ? 128 : 256; in CalculatePriority()
252 return static_cast<uint8_t>(priority); in CalculatePriority()
283 uint8_t priority; in SaveDiscoveredJoinerRouter() local
294 priority = CalculatePriority(aResult.mRssi, doesAllowAny); in SaveDiscoveredJoinerRouter()
301 if (priority > entry->mPriority) in SaveDiscoveredJoinerRouter()
317 entry->mPriority = priority; in SaveDiscoveredJoinerRouter()
/openthread-3.4.0/src/core/thread/
Dmesh_forwarder_ftd.cpp214 for (uint8_t priority = 0; priority < aPriority; priority++) in EvictMessage() local
216 …essage *message = mSendQueue.GetHeadForPriority(static_cast<Message::Priority>(priority)); message; in EvictMessage()
219 if (message->GetPriority() != priority) in EvictMessage()
235 for (uint8_t priority = aPriority; priority < Message::kNumPriorities; priority++) in EvictMessage() local
240 if (message->GetPriority() != priority) in EvictMessage()
691 Message::Priority priority = Message::kPriorityNormal; in HandleMesh() local
699 GetForwardFramePriority(aFrameData, meshAddrs, priority); in HandleMesh()
701 …essagePool>().Allocate(Message::kType6lowpan, /* aReserveHeader */ 0, Message::Settings(priority)); in HandleMesh()
Dtmf.cpp251 Message::Priority priority = Message::kPriorityNet; in DscpToPriority() local
264 priority = Message::kPriorityNormal; in DscpToPriority()
267 priority = Message::kPriorityLow; in DscpToPriority()
271 return priority; in DscpToPriority()
/openthread-3.4.0/tests/scripts/thread-cert/border_router/
Dtest_dnssd_instance_name_with_space.py143 …def _config_srp_client_services(self, client, instancename, hostname, port, priority, weight, addr… argument
147 client.srp_client_add_service(instancename, SERVICE, port, priority, weight)
Dtest_dnssd_server.py283 …def _config_srp_client_services(self, client, instancename, hostname, port, priority, weight, addr… argument
287 client.srp_client_add_service(instancename, SERVICE, port, priority, weight)
Dtest_dnssd_server_multi_border_routers.py297 …def _config_srp_client_services(self, client, instancename, hostname, port, priority, weight, addr… argument
301 client.srp_client_add_service(instancename, SERVICE, port, priority, weight)
/openthread-3.4.0/tests/scripts/thread-cert/
Dtest_dnssd.py236 priority, argument
246 client.srp_client_add_service(instancename, SERVICE + subtypes, port, priority, weight)
/openthread-3.4.0/src/core/net/
Dip6.cpp124 Message::Priority priority; in DscpToPriority() local
131 priority = Message::kPriorityLow; in DscpToPriority()
136 priority = Message::kPriorityNormal; in DscpToPriority()
143 priority = Message::kPriorityHigh; in DscpToPriority()
147 priority = Message::kPriorityNormal; in DscpToPriority()
151 return priority; in DscpToPriority()

12