summaryrefslogtreecommitdiff
path: root/sys/net/if_trunk.h
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-10-22 14:48:53 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-10-22 14:48:53 +0000
commit226dcc4ee855ea70f9228f9ef18ec67930b8efbd (patch)
tree6da20dbc314f2269ecd57c768870364c13b5f887 /sys/net/if_trunk.h
parentb8b3845bea1fa0069aa71d6f59864c5f72ed3883 (diff)
Add a broadcast mode to trunk(4). This mode sends frames on all
ports and receives frame on any port. This allows interaction with some L2 configurations. with input and ok reyk@
Diffstat (limited to 'sys/net/if_trunk.h')
-rw-r--r--sys/net/if_trunk.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/if_trunk.h b/sys/net/if_trunk.h
index 221d49674f3..b86d47b76e6 100644
--- a/sys/net/if_trunk.h
+++ b/sys/net/if_trunk.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_trunk.h,v 1.13 2007/09/06 16:22:55 reyk Exp $ */
+/* $OpenBSD: if_trunk.h,v 1.14 2007/10/22 14:48:52 pyr Exp $ */
/*
* Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org>
@@ -42,7 +42,8 @@ enum trunk_proto {
TRUNK_PROTO_ROUNDROBIN = 1, /* simple round robin */
TRUNK_PROTO_FAILOVER = 2, /* active failover */
TRUNK_PROTO_LOADBALANCE = 3, /* loadbalance */
- TRUNK_PROTO_MAX = 4
+ TRUNK_PROTO_BROADCAST = 4, /* broadcast */
+ TRUNK_PROTO_MAX = 5
};
struct trunk_protos {
@@ -55,6 +56,7 @@ struct trunk_protos {
{ "roundrobin", TRUNK_PROTO_ROUNDROBIN }, \
{ "failover", TRUNK_PROTO_FAILOVER }, \
{ "loadbalance", TRUNK_PROTO_LOADBALANCE }, \
+ { "broadcast", TRUNK_PROTO_BROADCAST }, \
{ "none", TRUNK_PROTO_NONE }, \
{ "default", TRUNK_PROTO_DEFAULT } \
}