aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/snoop.h
diff options
context:
space:
mode:
authorUgen J.S. Antsilevich <ugen@FreeBSD.org>1995-02-15 16:33:16 +0000
committerUgen J.S. Antsilevich <ugen@FreeBSD.org>1995-02-15 16:33:16 +0000
commit1bf407a7a52270637dbd999ebc22ed3d3c825fb9 (patch)
tree3c4da2c5cf6f3800d911d90a113e4a3f2c54ad36 /sys/sys/snoop.h
parent23564ff8c3961c6bf26195690b0a326f9adee48f (diff)
downloadsrc-1bf407a7a52270637dbd999ebc22ed3d3c825fb9.tar.gz
src-1bf407a7a52270637dbd999ebc22ed3d3c825fb9.zip
Add more flags to snoop device
Notes
Notes: svn path=/head/; revision=6446
Diffstat (limited to 'sys/sys/snoop.h')
-rw-r--r--sys/sys/snoop.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/sys/snoop.h b/sys/sys/snoop.h
index c1bb0b5b9e0d..4e07b63678d1 100644
--- a/sys/sys/snoop.h
+++ b/sys/sys/snoop.h
@@ -16,8 +16,16 @@
#ifndef SNOOP_H
#define SNOOP_H
-#define SNOOP_MINLEN (2*1024) /* This should be 2^X */
-#define SNOOP_MAXLEN (256*1024) /* This one also,256K */
+#define SNOOP_MINLEN (4*1024) /* This should be power of 2.
+ * 4K tested to be the minimum
+ * for which on normal tty
+ * usage there is no need to
+ * allocate more.
+ */
+#define SNOOP_MAXLEN (64*1024) /* This one also,64K enough
+ * If we grow more,something
+ * really bad in this world..
+ */
/*
* This is the main snoop per-device
@@ -36,6 +44,7 @@ struct snoop {
#define SNOOP_OPEN 0x0004
#define SNOOP_RWAIT 0x0008
#define SNOOP_OFLOW 0x0010
+#define SNOOP_DOWN 0x0020
struct selinfo snp_sel; /* Selection info */
};