Page MenuHomeFreeBSD

D21619.diff
No OneTemporary

D21619.diff

Index: head/share/man/man4/siftr.4
===================================================================
--- head/share/man/man4/siftr.4
+++ head/share/man/man4/siftr.4
@@ -30,7 +30,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 18, 2015
+.Dd October 7, 2019
.Dt SIFTR 4
.Os
.Sh NAME
@@ -130,6 +130,14 @@
The hashes are useful to correlate which TCP packet triggered the generation of
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
Index: head/sys/netinet/siftr.c
===================================================================
--- head/sys/netinet/siftr.c
+++ head/sys/netinet/siftr.c
@@ -918,7 +918,7 @@
* Only pkts selected by the tcp port filter
* can be inserted into the pkt_queue
*/
- if ((siftr_port_filter != 0) &&
+ if ((siftr_port_filter != 0) &&
(siftr_port_filter != ntohs(inp->inp_lport)) &&
(siftr_port_filter != ntohs(inp->inp_fport))) {
goto inp_unlock;

File Metadata

Mime Type
text/plain
Expires
Tue, Feb 10, 12:23 AM (4 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28608200
Default Alt Text
D21619.diff (1 KB)

Event Timeline