Categories
Linux Mastering Development

birth/crtime timestamp is recorded on one xfs but not the other xfs filesystem

Two different xfs filesystems on two different Fedora. Why one of them records Birth(crtime) in the inode and why the other one doesn’t? How to find the configuration/attribute differences between the two filesystems? #1 XFS v5 (Fedora 30): # stat tea.txt File: tea.txt Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fd01h/64769d […]

Categories
Mastering Development

decoding data from Binary to text in CRC-16 CCITT, i should input a codeword have it coded using crc generator,

After inputing codeword in sender’s side have it coded with crc generator poly , on the reveiver side it has to be decoded and checked for error , and the error can be input manually. This is the sender side (without coding the input) It worked fine: #include <string> #include <bitset> #include <iostream> using namespace […]

Categories
Mastering Development

decoding data from Binary to text in CRC-16 CCITT, i should input a codeword have it coded using crc generator,

Hello I’m in desprate need for help i have been stuck with this for weeks and i’m tight with time, so basically after inputing codeword in sender’s side have it coded with crc generator poly , on the reveiver side it has to be decoded and checked for error , and the error can be […]

Categories
Mastering Development

C – CRC32 checksum does not match Wireshark on Ethernet Frame Check Sequence

I’m using an online CRC-32 calculator to check that my output is correct however it seems that Wireshark has a different expected FCS for the ethernet packet. message2 is the ethernet frame minus the FCS as seen in Wireshark #include <stdio.h> #include <stdint.h> unsigned int crc32b(unsigned char *message) { int i, j; unsigned int byte, […]

Categories
Development

how to encapsulate ble / ip / … devices with a common interface in C

I’m writing a library to send data from embedded device to PC using BLE / IP / …, this library mainly focuses on packet segmentation(< MTU), CRC, etc. Now I want to hide the details of BLE / IP / …, with a common interface type data_transfer_instance_t, how can I finish this using linux driver’s […]