summaryrefslogtreecommitdiff
path: root/sys/dev/ic/hmereg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/hmereg.h')
-rw-r--r--sys/dev/ic/hmereg.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/hmereg.h b/sys/dev/ic/hmereg.h
index 72cc52e2e3b..31a1fd015ff 100644
--- a/sys/dev/ic/hmereg.h
+++ b/sys/dev/ic/hmereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hmereg.h,v 1.3 2001/09/20 18:36:43 jason Exp $ */
+/* $OpenBSD: hmereg.h,v 1.4 2001/09/23 20:03:01 jason Exp $ */
/* $NetBSD: hmereg.h,v 1.8 2001/04/30 12:22:42 bouyer Exp $ */
/*-
@@ -306,3 +306,9 @@ struct hme_xd {
#define HME_XD_DECODE_TSIZE(flags) \
(((flags) & HME_XD_TXLENMSK) >> 0)
+#ifndef EVL_ENCAPLEN /* defined if NVLAN > 0 */
+#define EVL_ENCAPLEN 0
+#endif
+
+#define HME_MTU \
+ (ETHERMTU + EVL_ENCAPLEN + sizeof(u_int32_t) + sizeof(struct ether_header))