Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109814181
D43264.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
969 B
Referenced Files
None
Subscribers
None
D43264.diff
View Options
diff --git a/cddl/lib/libdtrace/tcp.d b/cddl/lib/libdtrace/tcp.d
--- a/cddl/lib/libdtrace/tcp.d
+++ b/cddl/lib/libdtrace/tcp.d
@@ -265,7 +265,7 @@
tcp_dport = p == NULL ? 0 : ntohs(p->th_dport);
tcp_seq = p == NULL ? -1 : ntohl(p->th_seq);
tcp_ack = p == NULL ? -1 : ntohl(p->th_ack);
- tcp_offset = p == NULL ? -1 : (p->th_off >> 2);
+ tcp_offset = p == NULL ? -1 : (p->th_off << 2);
tcp_flags = p == NULL ? 0 : ((p->th_x2 << 8) | p->th_flags);
tcp_window = p == NULL ? 0 : ntohs(p->th_win);
tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum);
@@ -284,7 +284,7 @@
tcp_dport = p == NULL ? 0 : ntohs(p->th_dport);
tcp_seq = p == NULL ? -1 : p->th_seq;
tcp_ack = p == NULL ? -1 : p->th_ack;
- tcp_offset = p == NULL ? -1 : (p->th_off >> 2);
+ tcp_offset = p == NULL ? -1 : (p->th_off << 2);
tcp_flags = p == NULL ? 0 : ((p->th_x2 << 8) | p->th_flags);
tcp_window = p == NULL ? 0 : p->th_win;
tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 9:19 PM (8 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16583897
Default Alt Text
D43264.diff (969 B)
Attached To
Mode
D43264: libdtrace: Fix TCP data offset handling in the tcpinfo_t translator
Attached
Detach File
Event Timeline
Log In to Comment