Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178270018
D38824.1796381246.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
709 B
Referenced Files
None
Subscribers
None
D38824.1796381246.diff
View Options
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -2320,7 +2320,8 @@
INP_WLOCK_RECHECK(inp);
if (optval >= 0)
- tcp_pcap_set_sock_max(TCP_PCAP_OUT ?
+ tcp_pcap_set_sock_max(
+ (sopt->sopt_name == TCP_PCAP_OUT) ?
&(tp->t_outpkts) : &(tp->t_inpkts),
optval);
else
@@ -2561,7 +2562,8 @@
#ifdef TCPPCAP
case TCP_PCAP_OUT:
case TCP_PCAP_IN:
- optval = tcp_pcap_get_sock_max(TCP_PCAP_OUT ?
+ optval = tcp_pcap_get_sock_max(
+ (sopt->sopt_name == TCP_PCAP_OUT) ?
&(tp->t_outpkts) : &(tp->t_inpkts));
INP_WUNLOCK(inp);
error = sooptcopyout(sopt, &optval, sizeof optval);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 4, 10:47 AM (40 m, 18 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42206440
Default Alt Text
D38824.1796381246.diff (709 B)
Attached To
Mode
D38824: Actually get/set the correct values when inquiring TCP_PCAP_[IN/OUT]
Attached
Detach File
Event Timeline