Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102175557
D44616.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
828 B
Referenced Files
None
Subscribers
None
D44616.diff
View Options
diff --git a/sys/netinet/tcp_log_buf.h b/sys/netinet/tcp_log_buf.h
--- a/sys/netinet/tcp_log_buf.h
+++ b/sys/netinet/tcp_log_buf.h
@@ -421,7 +421,7 @@
tcp_set_bblog_state(struct tcpcb *tp, uint8_t ls, uint8_t bbpoint)
{
if ((ls == TCP_LOG_VIA_BBPOINTS) &&
- (tp->_t_logstate <= TCP_LOG_STATE_OFF)){
+ (tp->_t_logstate == TCP_LOG_STATE_OFF)){
/*
* We don't allow a BBPOINTS set to override
* other types of BB logging set by other means such
@@ -431,11 +431,9 @@
*/
tp->_t_logpoint = bbpoint;
tp->_t_logstate = ls;
- } else if (ls != TCP_LOG_VIA_BBPOINTS) {
- tp->_t_logpoint = 0;
- if ((ls >= TCP_LOG_STATE_OFF) &&
- (ls < TCP_LOG_VIA_BBPOINTS))
- tp->_t_logstate = ls;
+ } else if (ls < TCP_LOG_VIA_BBPOINTS) {
+ tp->_t_logpoint = TCP_BBPOINT_NONE;
+ tp->_t_logstate = ls;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 1:04 PM (21 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14560826
Default Alt Text
D44616.diff (828 B)
Attached To
Mode
D44616: tcp bblog: cleanup
Attached
Detach File
Event Timeline
Log In to Comment