diff --git a/pcap4j-core/src/main/java/org/pcap4j/packet/TcpPacket.java b/pcap4j-core/src/main/java/org/pcap4j/packet/TcpPacket.java index 65f08d31d..63f366f74 100644 --- a/pcap4j-core/src/main/java/org/pcap4j/packet/TcpPacket.java +++ b/pcap4j-core/src/main/java/org/pcap4j/packet/TcpPacket.java @@ -926,7 +926,7 @@ protected String buildString() { sb.append(" Sequence Number: ").append(getSequenceNumberAsLong()).append(ls); sb.append(" Acknowledgment Number: ").append(getAcknowledgmentNumberAsLong()).append(ls); sb.append(" Data Offset: ") - .append(dataOffset) + .append(getDataOffsetAsInt()) .append(" (") .append(dataOffset * 4) .append(" [bytes])")