On Wednesday, 11 March 2020 at 05:25:43 UTC, kookman wrote:
I am using libpcap to read from stored pcap files, and want to
use std.bitmanip.bitfields to read TCP flags from the file,
using a struct like:
struct TcpHeader {
align(1):
ushort srcPort;
ushort dstPort;
uint seqNo;
I am using libpcap to read from stored pcap files, and want to
use std.bitmanip.bitfields to read TCP flags from the file, using
a struct like:
struct TcpHeader {
align(1):
ushort srcPort;
ushort dstPort;
uint seqNo;
uint ackNo;
mixin(bitfields!(
bool, "flagFin",