summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2003-02-25 22:34:13 +0000
committerJason Wright <jason@cvs.openbsd.org>2003-02-25 22:34:13 +0000
commit8b0c37b980c4aa3641a4f6cf9b0b7d5d0a4d054c (patch)
tree02a2842583db5b912fc840bf9f04b936c8b70353 /share
parentd4e460e587138bf4f7350e37948dbcad8933a037 (diff)
document SIOCBRDGARL; pointed out by jmc
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/bridge.453
1 files changed, 52 insertions, 1 deletions
diff --git a/share/man/man4/bridge.4 b/share/man/man4/bridge.4
index 180c564ecd9..6dedd06444d 100644
--- a/share/man/man4/bridge.4
+++ b/share/man/man4/bridge.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: bridge.4,v 1.45 2002/09/18 07:35:13 deraadt Exp $
+.\" $OpenBSD: bridge.4,v 1.46 2003/02/25 22:34:12 jason Exp $
.\"
.\" Copyright (c) 1999-2001 Jason L. Wright (jason@thought.net)
.\" All rights reserved.
@@ -328,8 +328,59 @@ to flush only the dynamically learned addresses from the cache.
.It Dv SIOCBRDGARL
.Pq Li "struct ifbrlreq"
Add a Ethernet address filtering rule to the bridge on a specific interface.
+.Fa ifbr_name
+contains the name of the bridge device, and
+.Fa ifbr_ifsname
+contains the name of the bridge member interface.
+The
+.Fa ifbr_action
+field is one of
+.Fa BRL_ACTION_PASS
+or
+.Fa BRL_ACTION_BLOCK ,
+to pass or block matching frames respectively.
+The
+.Fa ifbr_flags
+specifies whether the rule should match on input, output, or both
+be using the flags
+.Fa BRL_FLAG_IN
+and
+.Fa BRL_FLAG_OUT .
+It also specifies whether either (or both) of the source and destination
+addresses should be matched by using the
+.Fa BRL_FLAG_SRCVALID
+and
+.Fa BRL_FLAG_DSTVALID
+flags.
+The
+.Fa ifbr_src
+field is the source address that triggers the rule (only considered if
+.Fa ifbr_flags
+has the
+.Fa BRL_FLAG_SRCVALID
+bit set).
+The
+.Fa ifbr_src
+field is the destination address that triggers the rule (only considered if
+.Fa ifbr_flags
+has the
+.Fa BRL_FLAG_DSTVALID
+bit set).
+.Pp
The argument structure is as follows:
.Bd -literal -offset indent
+struct ifbrlreq {
+ char ifbr_name[IFNAMSIZ];
+ char ifbr_ifsname[IFNAMSIZ];
+ u_int8_t ifbr_action;
+ u_int8_t ifbr_flags;
+ struct ether_addr ifbr_src;
+ struct ether_addr ifbr_dst;
+};
+#define BRL_ACTION_BLOCK 0x01
+#define BRL_ACTION_PASS 0x02
+#define BRL_FLAG_IN 0x08
+#define BRL_FLAG_OUT 0x04
.Ed
.It Dv SIOCBRDGFRL
.Pq Li "struct ifbrlreq"