Lines Matching full:pdu
34 /* Minimum valid Mesh Network PDU length. The Network headers
45 #define IVI(pdu) ((pdu)[0] >> 7) argument
46 #define NID(pdu) ((pdu)[0] & 0x7f) argument
47 #define CTL(pdu) ((pdu)[1] >> 7) argument
48 #define TTL(pdu) ((pdu)[1] & 0x7f) argument
49 #define SEQ(pdu) (((u32_t)(pdu)[2] << 16) | \ argument
50 ((u32_t)(pdu)[3] << 8) | (u32_t)(pdu)[4]);
51 #define SRC(pdu) (sys_get_be16(&(pdu)[5])) argument
52 #define DST(pdu) (sys_get_be16(&(pdu)[7])) argument
108 static u64_t msg_hash(struct bt_mesh_net_rx *rx, struct os_mbuf *pdu) in msg_hash() argument
113 hash1 = (BT_MESH_NET_IVI_RX(rx) << 8) | pdu->om_data[2]; in msg_hash()
116 memcpy(&hash2, &pdu->om_data[3], 4); in msg_hash()
122 struct os_mbuf *pdu) in msg_cache_match() argument
124 u64_t hash = msg_hash(rx, pdu); in msg_cache_match()
801 BT_ERR("Insufficient MIC space for CTL PDU"); in bt_mesh_net_encode()
804 BT_ERR("Insufficient MIC space for PDU"); in bt_mesh_net_encode()
1295 BT_DBG("PDU: %s", bt_hex(buf->om_data, buf->om_len)); in bt_mesh_net_decode()