Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys defparam BPF_BUFSIZE



details:   https://anonhg.NetBSD.org/src/rev/9628cef00d3f
branches:  trunk
changeset: 532413:9628cef00d3f
user:      wrstuden <wrstuden%NetBSD.org@localhost>
date:      Thu Jun 06 23:54:47 2002 +0000

description:
defparam BPF_BUFSIZE

diffstat:

 sys/conf/files |  3 ++-
 sys/net/bpf.c  |  8 ++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 0a07d3a55ee8 -r 9628cef00d3f sys/conf/files
--- a/sys/conf/files    Thu Jun 06 23:05:34 2002 +0000
+++ b/sys/conf/files    Thu Jun 06 23:54:47 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files,v 1.531 2002/05/22 05:49:57 simonb Exp $
+#      $NetBSD: files,v 1.532 2002/06/06 23:54:48 wrstuden Exp $
 
 #      @(#)files.newconf       7.5 (Berkeley) 5/10/93
 
@@ -850,6 +850,7 @@
 # Attribute used by various things that need BPF's virtual machine
 #
 define bpf_filter
+defparam opt_bpf.h     BPF_BUFSIZE
 
 # Attributes used by the ISDN subsystem
 #
diff -r 0a07d3a55ee8 -r 9628cef00d3f sys/net/bpf.c
--- a/sys/net/bpf.c     Thu Jun 06 23:05:34 2002 +0000
+++ b/sys/net/bpf.c     Thu Jun 06 23:54:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bpf.c,v 1.64 2002/03/23 15:55:21 darrenr Exp $ */
+/*     $NetBSD: bpf.c,v 1.65 2002/06/06 23:54:47 wrstuden Exp $        */
 
 /*
  * Copyright (c) 1990, 1991, 1993
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.64 2002/03/23 15:55:21 darrenr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.65 2002/06/06 23:54:47 wrstuden Exp $");
 
 #include "bpfilter.h"
 
@@ -80,6 +80,10 @@
 #include <netinet/in.h>
 #include <netinet/if_inarp.h>
 
+#if defined(_KERNEL_OPT)
+#include "bpf.h"
+#endif
+
 #ifndef BPF_BUFSIZE
 # define BPF_BUFSIZE 8192              /* 4096 too small for FDDI frames */
 #endif



Home | Main Index | Thread Index | Old Index