Write a C program that parses a simulated TCP segment byte array. Print the source port, destination port, sequence number, acknowledgment number, flags, and window size.
Requirements:
- Define a simulated TCP segment as an unsigned char array
- Parse and print source and destination ports
- Parse and print the 32-bit sequence number
- Parse and print the 32-bit acknowledgment number
- Parse and print data offset (header length)
- Parse and print TCP flags, especially SYN/ACK/FIN
- Parse and print the window size
- Use clear formatting for all output
- Include the keywords: TCP, SYN, ACK, sequence, port