Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103813366
D14937.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
792 B
Referenced Files
None
Subscribers
None
D14937.diff
View Options
Index: head/sys/netinet/tcp_seq.h
===================================================================
--- head/sys/netinet/tcp_seq.h
+++ head/sys/netinet/tcp_seq.h
@@ -47,10 +47,10 @@
#define SEQ_MIN(a, b) ((SEQ_LT(a, b)) ? (a) : (b))
#define SEQ_MAX(a, b) ((SEQ_GT(a, b)) ? (a) : (b))
-#define WIN_LT(a,b) ((short)(ntohs(a)-ntohs(b)) < 0)
-#define WIN_LEQ(a,b) ((short)(ntohs(a)-ntohs(b)) <= 0)
-#define WIN_GT(a,b) ((short)(ntohs(a)-ntohs(b)) > 0)
-#define WIN_GEQ(a,b) ((short)(ntohs(a)-ntohs(b)) >= 0)
+#define WIN_LT(a,b) (ntohs(a) < ntohs(b))
+#define WIN_LEQ(a,b) (ntohs(a) <= ntohs(b))
+#define WIN_GT(a,b) (ntohs(a) > ntohs(b))
+#define WIN_GEQ(a,b) (ntohs(a) >= ntohs(b))
#define WIN_MIN(a, b) ((WIN_LT(a, b)) ? (a) : (b))
#define WIN_MAX(a, b) ((WIN_GT(a, b)) ? (a) : (b))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 6:55 PM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14948720
Default Alt Text
D14937.diff (792 B)
Attached To
Mode
D14937: Fix LRO window comparison
Attached
Detach File
Event Timeline
Log In to Comment