Home
last modified time | relevance | path

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

/openthread-3.7.0/tests/scripts/thread-cert/
Dlowpan.py47 def __init__(self, tf, nh, hlim, cid, sac, sam, m, dac, dam): argument
49 self._nh = nh
63 def nh(self): member in LowpanIPHC
103 nh = (data_byte >> 2) & 0x01
115 return cls(tf, nh, hlim, cid, sac, sam, m, dac, dam)
120 self.nh,
148 def __init__(self, eid, nh): argument
150 self._nh = nh
157 def nh(self): member in LowpanNHC
165 nh = header_byte & 0x01
[all …]
Dtest_lowpan.py233 nh = any_nh()
242 byte0 = (3 << 5) | (tf << 3) | (nh << 2) | hlim
252 self.assertEqual(nh, actual.nh)
2413 nh = factory.IPHC_NH_INLINE
2414 …iphc = lowpan.LowpanIPHC(any_tf(), nh, any_hlim(), any_cid(), any_sac(), any_sam(), any_m(), any_d…
2423 self.assertEqual(0, nh)
2430 nh = factory.IPHC_NH_COMPRESSED
2431 …iphc = lowpan.LowpanIPHC(any_tf(), nh, any_hlim(), any_cid(), any_sac(), any_sam(), any_m(), any_d…
2440 self.assertEqual(1, nh)
/openthread-3.7.0/src/posix/platform/
Dnetif.cpp441 struct nlmsghdr nh; in UpdateUnicastLinux() member
448 req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg)); in UpdateUnicastLinux()
449 req.nh.nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK | (aIsAdded ? (NLM_F_CREATE | NLM_F_EXCL) : 0); in UpdateUnicastLinux()
450 req.nh.nlmsg_type = aIsAdded ? RTM_NEWADDR : RTM_DELADDR; in UpdateUnicastLinux()
451 req.nh.nlmsg_pid = 0; in UpdateUnicastLinux()
452 req.nh.nlmsg_seq = ++sNetlinkSequence; in UpdateUnicastLinux()
460 … AddRtAttr(&req.nh, sizeof(req), IFA_LOCAL, aAddressInfo.mAddress, sizeof(*aAddressInfo.mAddress)); in UpdateUnicastLinux()
469 AddRtAttr(&req.nh, sizeof(req), IFA_CACHEINFO, &cacheinfo, sizeof(cacheinfo)); in UpdateUnicastLinux()
479 AddRtAttrUint32(&req.nh, sizeof(req), IFA_FLAGS, IFA_F_NOPREFIXROUTE); in UpdateUnicastLinux()
490 …AddRtAttrUint32(&req.nh, sizeof(req), IFA_RT_PRIORITY, OPENTHREAD_POSIX_CONFIG_NETIF_PREFIX_ROUTE_… in UpdateUnicastLinux()
[all …]
/openthread-3.7.0/tests/scripts/thread-cert/pktverify/
Dtest_layer_fields.py280 self.assertIsInstanceOrNull(lowpan.iphc.nh, int)