Lines Matching refs:ncsi_buf
28 bool NCSIFrame::parse_ethernet_frame(const ncsi_buf_t& ncsi_buf) in parse_ethernet_frame() argument
30 std::memcpy(&dst_mac_, ncsi_buf.data, sizeof(dst_mac_)); in parse_ethernet_frame()
31 std::memcpy(&src_mac_, ncsi_buf.data + sizeof(dst_mac_), sizeof(src_mac_)); in parse_ethernet_frame()
34 const uint8_t et_hi = *(ncsi_buf.data + 2 * sizeof(mac_addr_t)); in parse_ethernet_frame()
35 const uint8_t et_lo = *(ncsi_buf.data + 2 * sizeof(mac_addr_t) + 1); in parse_ethernet_frame()
48 *(ncsi_buf.data + offsetof(ncsi_header_t, control_packet_type)); in parse_ethernet_frame()
49 channel_id_ = *(ncsi_buf.data + offsetof(ncsi_header_t, channel_id)); in parse_ethernet_frame()
56 std::memcpy(&response_code_, ncsi_buf.data + payload_offset, in parse_ethernet_frame()
60 ncsi_buf.data + payload_offset + sizeof(reason_code_), in parse_ethernet_frame()
68 std::memcpy(&manufacturer_id_, ncsi_buf.data + payload_offset, in parse_ethernet_frame()
73 *(ncsi_buf.data + payload_offset + sizeof(manufacturer_id_) + 3); in parse_ethernet_frame()
78 std::vector<uint8_t>(ncsi_buf.data, ncsi_buf.data + ncsi_buf.len); in parse_ethernet_frame()