Lines Matching refs:flags

84     uint8_t flags = 0;  in BorderRouterConfigToFlagByte()  local
88 flags |= SPINEL_NET_FLAG_PREFERRED; in BorderRouterConfigToFlagByte()
93 flags |= SPINEL_NET_FLAG_SLAAC; in BorderRouterConfigToFlagByte()
98 flags |= SPINEL_NET_FLAG_DHCP; in BorderRouterConfigToFlagByte()
103 flags |= SPINEL_NET_FLAG_DEFAULT_ROUTE; in BorderRouterConfigToFlagByte()
108 flags |= SPINEL_NET_FLAG_CONFIGURE; in BorderRouterConfigToFlagByte()
113 flags |= SPINEL_NET_FLAG_ON_MESH; in BorderRouterConfigToFlagByte()
116 flags |= (static_cast<uint8_t>(aConfig.mPreference) << SPINEL_NET_FLAG_PREFERENCE_OFFSET); in BorderRouterConfigToFlagByte()
118 return flags; in BorderRouterConfigToFlagByte()
123 uint8_t flags = 0; in BorderRouterConfigToFlagByteExtended() local
127 flags |= SPINEL_NET_FLAG_EXT_DNS; in BorderRouterConfigToFlagByteExtended()
132 flags |= SPINEL_NET_FLAG_EXT_DP; in BorderRouterConfigToFlagByteExtended()
135 return flags; in BorderRouterConfigToFlagByteExtended()
140 uint8_t flags = 0; in ExternalRouteConfigToFlagByte() local
145 flags |= SPINEL_ROUTE_PREFERENCE_LOW; in ExternalRouteConfigToFlagByte()
149 flags |= SPINEL_ROUTE_PREFERENCE_HIGH; in ExternalRouteConfigToFlagByte()
154 flags |= SPINEL_ROUTE_PREFERENCE_MEDIUM; in ExternalRouteConfigToFlagByte()
160 flags |= SPINEL_ROUTE_FLAG_NAT64; in ExternalRouteConfigToFlagByte()
163 return flags; in ExternalRouteConfigToFlagByte()
168 uint8_t flags(0); in LinkFlagsToFlagByte() local
172 flags |= SPINEL_THREAD_MODE_RX_ON_WHEN_IDLE; in LinkFlagsToFlagByte()
177 flags |= SPINEL_THREAD_MODE_FULL_THREAD_DEV; in LinkFlagsToFlagByte()
182 flags |= SPINEL_THREAD_MODE_FULL_NETWORK_DATA; in LinkFlagsToFlagByte()
185 return flags; in LinkFlagsToFlagByte()
996 uint8_t flags = 0; in HandlePropertyInsert() local
1008 SuccessOrExit(error = mDecoder.ReadUint8(flags)); in HandlePropertyInsert()
1012 …borderRouterConfig.mPreference = ((flags & SPINEL_NET_FLAG_PREFERENCE_MASK) >> SPINEL_NET_FLAG_P… in HandlePropertyInsert()
1013 borderRouterConfig.mPreferred = ((flags & SPINEL_NET_FLAG_PREFERRED) != 0); in HandlePropertyInsert()
1014 borderRouterConfig.mSlaac = ((flags & SPINEL_NET_FLAG_SLAAC) != 0); in HandlePropertyInsert()
1015 borderRouterConfig.mDhcp = ((flags & SPINEL_NET_FLAG_DHCP) != 0); in HandlePropertyInsert()
1016 borderRouterConfig.mConfigure = ((flags & SPINEL_NET_FLAG_CONFIGURE) != 0); in HandlePropertyInsert()
1017 borderRouterConfig.mDefaultRoute = ((flags & SPINEL_NET_FLAG_DEFAULT_ROUTE) != 0); in HandlePropertyInsert()
1018 borderRouterConfig.mOnMesh = ((flags & SPINEL_NET_FLAG_ON_MESH) != 0); in HandlePropertyInsert()
1331 uint8_t flags[2]; in EncodeOperationalDataset() local
1333 … static_cast<const SecurityPolicy &>(aDataset.mSecurityPolicy).GetFlags(flags, sizeof(flags)); in EncodeOperationalDataset()
1337 SuccessOrExit(error = mEncoder.WriteUint8(flags[0])); in EncodeOperationalDataset()
1340 SuccessOrExit(error = mEncoder.WriteUint8(flags[1])); in EncodeOperationalDataset()
1569 uint8_t flags[2]; in DecodeOperationalDataset() local
1573 SuccessOrExit(error = mDecoder.ReadUint8(flags[0])); in DecodeOperationalDataset()
1576 SuccessOrExit(error = mDecoder.ReadUint8(flags[1])); in DecodeOperationalDataset()
1579 … static_cast<SecurityPolicy &>(aDataset.mSecurityPolicy).SetFlags(flags, flagsLength); in DecodeOperationalDataset()
2303 uint8_t flags = 0; in HandlePropertyInsert() local
2313 SuccessOrExit(error = mDecoder.ReadUint8(flags)); in HandlePropertyInsert()
2317 routeConfig.mPreference = FlagByteToExternalRoutePreference(flags); in HandlePropertyInsert()
2318 routeConfig.mNat64 = ((flags & SPINEL_ROUTE_FLAG_NAT64) != 0); in HandlePropertyInsert()
4221 …uint8_t flags = static_cast<uint8_t>(aResult->mVersion << SPINEL_BEACON_THREAD_FLAG_VERSION_SHIFT); in HandleActiveScanResult() local
4225 flags |= SPINEL_BEACON_THREAD_FLAG_NATIVE; in HandleActiveScanResult()
4242 SuccessOrExit(error = mEncoder.WriteUint8(flags)); in HandleActiveScanResult()
4587 uint16_t flags = 0; in HandlePcapFrame() local
4594 flags |= SPINEL_MD_FLAG_TX; in HandlePcapFrame()
4606 SuccessOrExit(mEncoder.WriteUint16(flags)); // Flags in HandlePcapFrame()