cybersecurity · intermediate · ~15 min · safe pentest lab
Extract the upper nibble.
The subtype is bits 4-7 of the Frame Control first byte. Implement int frame_subtype(unsigned char fc0) returning (fc0 >> 4) & 0xF.
int frame_subtype(unsigned char fc0) {
/* TODO */
return 0;
}
Solve this exercise in the browser editor — compile and run against the test harness, no setup required.