summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/extensions/ebt_mark.c
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2004-12-05 21:21:41 +0000
committerBart De Schuymer <bdschuym@pandora.be>2004-12-05 21:21:41 +0000
commit880131e63865e04cb82abb520a7abdc91113d9c7 (patch)
tree7e043f1dd85b3e9eeb6cabec1bdc41fc5152a801 /userspace/ebtables2/extensions/ebt_mark.c
parent929831156f39524ef3fb563edc2f3063b74247e1 (diff)
prefer mark-set over set-mark
Diffstat (limited to 'userspace/ebtables2/extensions/ebt_mark.c')
-rw-r--r--userspace/ebtables2/extensions/ebt_mark.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/userspace/ebtables2/extensions/ebt_mark.c b/userspace/ebtables2/extensions/ebt_mark.c
index bf23a03..11bcc12 100644
--- a/userspace/ebtables2/extensions/ebt_mark.c
+++ b/userspace/ebtables2/extensions/ebt_mark.c
@@ -12,7 +12,10 @@ static int mark_supplied;
static struct option opts[] =
{
{ "mark-target" , required_argument, 0, MARK_TARGET },
+ /* an oldtime messup, we should have always used the scheme
+ * <extension-name>-<option> */
{ "set-mark" , required_argument, 0, MARK_SETMARK },
+ { "mark-set" , required_argument, 0, MARK_SETMARK },
{ 0 }
};
@@ -20,7 +23,7 @@ static void print_help()
{
printf(
"mark target options:\n"
- " --set-mark value : Set nfmark value\n"
+ " --mark-set value : Set nfmark value\n"
" --mark-target target : ACCEPT, DROP, RETURN or CONTINUE\n");
}
@@ -83,7 +86,7 @@ static void print(const struct ebt_u_entry *entry,
struct ebt_mark_t_info *markinfo =
(struct ebt_mark_t_info *)target->data;
- printf("--set-mark 0x%lx", markinfo->mark);
+ printf("--mark-set 0x%lx", markinfo->mark);
if (markinfo->target == EBT_ACCEPT)
return;
printf(" --mark-target %s", TARGET_NAME(markinfo->target));