summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorvanhu <vanhu@FreeBSD.org>2008-08-12 09:05:01 +0000
committervanhu <vanhu@FreeBSD.org>2008-08-12 09:05:01 +0000
commit72791f9bc1200815a0f4674c7533c9add019613f (patch)
treebff7efdc5f8a70b1f3d1d6466499631b750014d3 /sys/net
parent0b389f773a9c8f3b051d4428ff2da0e0312ce140 (diff)
downloadFreeBSD-src-72791f9bc1200815a0f4674c7533c9add019613f.zip
FreeBSD-src-72791f9bc1200815a0f4674c7533c9add019613f.tar.gz
Increase statistic counters for enc0 interface when enabled
and processing IPSec traffic. Approved by: gnn (mentor) MFC after: 1 week
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_enc.c2
-rw-r--r--sys/net/if_enc.h35
2 files changed, 36 insertions, 1 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c
index bc5f328..aa008ae 100644
--- a/sys/net/if_enc.c
+++ b/sys/net/if_enc.c
@@ -76,7 +76,7 @@ struct enchdr {
u_int32_t flags;
};
-static struct ifnet *encif;
+struct ifnet *encif;
static struct mtx enc_mtx;
struct enc_softc {
diff --git a/sys/net/if_enc.h b/sys/net/if_enc.h
new file mode 100644
index 0000000..59a55fc
--- /dev/null
+++ b/sys/net/if_enc.h
@@ -0,0 +1,35 @@
+/*-
+ * Copyright (c) 2008 The FreeBSD Project.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * $FreeBSD$
+ */
+
+#ifndef _NET_IF_ENC_H
+#define _NET_IF_ENC_H
+
+extern struct ifnet *encif;
+
+#endif /* _NET_IF_ENC_H */
OpenPOWER on IntegriCloud