From 4962f2100dc55e083cfc372b98b7388bbd058a21 Mon Sep 17 00:00:00 2001 From: Bart De Schuymer Date: Tue, 3 Oct 2006 10:04:46 +0000 Subject: add --mark-or, --mark-xor and --mark-and support for mark target --- userspace/ebtables2/ebtables.8 | 19 +++++++- userspace/ebtables2/extensions/ebt_mark.c | 74 ++++++++++++++++++++++++++----- 2 files changed, 79 insertions(+), 14 deletions(-) (limited to 'userspace/ebtables2') diff --git a/userspace/ebtables2/ebtables.8 b/userspace/ebtables2/ebtables.8 index 8e72289..f4f6f00 100644 --- a/userspace/ebtables2/ebtables.8 +++ b/userspace/ebtables2/ebtables.8 @@ -1,4 +1,4 @@ -.TH EBTABLES 8 "November 13, 2005" +.TH EBTABLES 8 "September 04, 2006" .\" .\" Man page written by Bart De Schuymer .\" It is based on the iptables man page. @@ -24,7 +24,7 @@ .\" .\" .SH NAME -ebtables (v.2.0.8-rc1) \- Ethernet bridge frame table administration +ebtables (v.2.0.8-rc3) \- Ethernet bridge frame table administration .SH SYNOPSIS .BR "ebtables " [ -t " table ] " - [ ACDI "] chain rule specification [match extensions] [watcher extensions] target" .br @@ -924,6 +924,21 @@ same place. This allows for a form of communication between ebtables and iptable Mark the frame with the specified non-negative .IR value . .TP +.BR "--mark-or " "\fIvalue\fP" +.br +Or the frame with the specified non-negative +.IR value . +.TP +.BR "--mark-and " "\fIvalue\fP" +.br +And the frame with the specified non-negative +.IR value . +.TP +.BR "--mark-xor " "\fIvalue\fP" +.br +Xor the frame with the specified non-negative +.IR value . +.TP .BR "--mark-target " "\fItarget\fP" .br Specifies the standard target. After marking the frame, the rule diff --git a/userspace/ebtables2/extensions/ebt_mark.c b/userspace/ebtables2/extensions/ebt_mark.c index c7c79aa..e773def 100644 --- a/userspace/ebtables2/extensions/ebt_mark.c +++ b/userspace/ebtables2/extensions/ebt_mark.c @@ -3,7 +3,7 @@ * Authors: * Bart De Schuymer * - * July, 2002 + * July, 2002, September 2006 */ #include @@ -17,6 +17,9 @@ static int mark_supplied; #define MARK_TARGET '1' #define MARK_SETMARK '2' +#define MARK_ORMARK '3' +#define MARK_ANDMARK '4' +#define MARK_XORMARK '5' static struct option opts[] = { { "mark-target" , required_argument, 0, MARK_TARGET }, @@ -24,6 +27,9 @@ static struct option opts[] = * -