Home
last modified time | relevance | path

Searched refs:sPortOffset (Results 1 – 4 of 4) sorted by relevance

/openthread-3.5.0/src/posix/platform/
Dvirtual_time.cpp53 static uint16_t sPortOffset = 0; ///< Port offset for simulation. variable
69 sPortOffset = (uint16_t)strtol(offset, &endptr, 0); in virtualTimeInit()
80 sPortOffset *= (kMaxNetworkSize + 1); in virtualTimeInit()
83 sockaddr.sin_port = htons(kBasePort + sPortOffset + aNodeId); in virtualTimeInit()
116 sockaddr.sin_port = htons(9000 + sPortOffset); in virtualTimeSendEvent()
/openthread-3.5.0/examples/platforms/simulation/virtual_time/
Dplatform-sim.c65 uint16_t sPortOffset; variable
82 sockaddr.sin_port = htons(sPortBase + sPortOffset); in otSimSendEvent()
174 parseFromEnvAsUint16("PORT_OFFSET", &sPortOffset); in socket_init()
175 sPortOffset *= (MAX_NETWORK_SIZE + 1); in socket_init()
177 sockaddr.sin_port = htons((uint16_t)(sPortBase + sPortOffset + gNodeId)); in socket_init()
/openthread-3.5.0/examples/platforms/simulation/
Dtrel.c72 static uint16_t sPortOffset = 0; variable
130 sUdpPort = (uint16_t)(TREL_SIM_PORT + sPortOffset + gNodeId); in initFds()
165 sockaddr.sin_port = htons((uint16_t)(TREL_SIM_PORT + sPortOffset)); in initFds()
207 sockaddr.sin_port = htons((uint16_t)(TREL_SIM_PORT + sPortOffset)); in sendPendingTxMessages()
406 sPortOffset = (uint16_t)strtol(str, &endptr, 0); in platformTrelInit()
414 sPortOffset *= (MAX_NETWORK_SIZE + 1); in platformTrelInit()
Dradio.c76 extern uint16_t sPortOffset;
81 static uint16_t sPortOffset = 0; variable
421 sPort = (uint16_t)(sPortBase + sPortOffset + gNodeId); in initFds()
460 sockaddr.sin_port = htons((uint16_t)(sPortBase + sPortOffset)); in initFds()
481 parseFromEnvAsUint16("PORT_OFFSET", &sPortOffset); in platformRadioInit()
482 sPortOffset *= (MAX_NETWORK_SIZE + 1); in platformRadioInit()
936 uint16_t srcNodeId = srcPort - sPortOffset - sPortBase; in platformRadioProcess()
979 sockaddr.sin_port = htons((uint16_t)(sPortBase + sPortOffset)); in radioTransmit()