Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136896588
D21619.id61983.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21619.id61983.diff
View Options
Index: share/man/man4/siftr.4
===================================================================
--- share/man/man4/siftr.4
+++ share/man/man4/siftr.4
@@ -131,6 +131,14 @@
a particular log message, but calculating them adds additional computational
overhead into the fast path.
.El
+.Bl -tag -offset indent -width Va
+.It Va net.inet.siftr.port_filter
+controls on which source or destination port siftr should capture
+.Nm .
+By default, the value is set to 0, which means all ports are eligible for logging.
+Set to any other value, only packets where either the source or destination
+port is equal to this number are logged.
+.El
.Ss Log Format
A typical
.Nm
Index: sys/netinet/siftr.c
===================================================================
--- sys/netinet/siftr.c
+++ sys/netinet/siftr.c
@@ -919,8 +919,8 @@
* can be inserted into the pkt_queue
*/
if ((siftr_port_filter != 0) &&
- (siftr_port_filter != ntohs(inp->inp_lport)) &&
- (siftr_port_filter != ntohs(inp->inp_fport))) {
+ !((siftr_port_filter == ntohs(inp->inp_lport)) ||
+ (siftr_port_filter == ntohs(inp->inp_fport)))) {
goto inp_unlock;
}
@@ -1104,8 +1104,8 @@
* can be inserted into the pkt_queue
*/
if ((siftr_port_filter != 0) &&
- (siftr_port_filter != ntohs(inp->inp_lport)) &&
- (siftr_port_filter != ntohs(inp->inp_fport))) {
+ !((siftr_port_filter == ntohs(inp->inp_lport)) ||
+ (siftr_port_filter == ntohs(inp->inp_fport)))) {
goto inp_unlock6;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 21, 12:34 PM (19 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25765008
Default Alt Text
D21619.id61983.diff (1 KB)
Attached To
Mode
D21619: Update SIFTR man page, and minor trailing whitespace nit.
Attached
Detach File
Event Timeline
Log In to Comment