Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Make BPF_BUFSIZE overridable: 8192 is smaller than ...
details: https://anonhg.NetBSD.org/src/rev/d58ede81e773
branches: trunk
changeset: 486056:d58ede81e773
user: jonathan <jonathan%NetBSD.org@localhost>
date: Fri May 12 05:58:01 2000 +0000
description:
Make BPF_BUFSIZE overridable: 8192 is smaller than MTU of some devices.
TODO: defopt, or make sysctl'able (c.f. FreeBSD).
diffstat:
sys/net/bpf.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r b5e4b7a7cac2 -r d58ede81e773 sys/net/bpf.c
--- a/sys/net/bpf.c Fri May 12 04:43:21 2000 +0000
+++ b/sys/net/bpf.c Fri May 12 05:58:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.54 2000/04/12 04:20:47 chs Exp $ */
+/* $NetBSD: bpf.c,v 1.55 2000/05/12 05:58:01 jonathan Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -77,7 +77,9 @@
#include <netinet/in.h>
#include <netinet/if_inarp.h>
-#define BPF_BUFSIZE 8192 /* 4096 too small for FDDI frames */
+#ifndef BPF_BUFSIZE
+# define BPF_BUFSIZE 8192 /* 4096 too small for FDDI frames */
+#endif
#define PRINET 26 /* interruptible */
Home |
Main Index |
Thread Index |
Old Index