From a07c6d61355a9558676d1071cb55969ce4a7d46e Mon Sep 17 00:00:00 2001 From: Andy Furniss Date: Mon, 29 Sep 2014 20:43:01 +0100 Subject: [PATCH] add missing underscore to man page and example nf_mark ematch The man page and the "fail" example are missing an underscore in the nf_mark ematch. eg. tc filter add dev eth0 parent ffff: basic match 'meta(nfmark gt 24)' classid 2:4 meta: unknown meta id ... >>meta(nfmark gt 24)<< ... ... meta(>>nfmark<< gt 24)... Usage: meta(OBJECT { eq | lt | gt } OBJECT) where: OBJECT := { META_ID | VALUE } META_ID := id [ shift SHIFT ] [ mask MASK ] Example: meta(nfmark gt 24) meta(indev shift 1 eq "ppp") meta(tcindex mask 0xf0 eq 0xf0) For a list of meta identifiers, use meta(list). Illegal "ematch" meta(list) does correctly show nf_mark and the above test works with nf_mark. Signed-off-by: Andy Furniss adf.lists@gmail.com --- tc/em_meta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tc/em_meta.c b/tc/em_meta.c index fad6b122..b64f333e 100644 --- a/tc/em_meta.c +++ b/tc/em_meta.c @@ -32,7 +32,7 @@ static void meta_print_usage(FILE *fd) "where: OBJECT := { META_ID | VALUE }\n" \ " META_ID := id [ shift SHIFT ] [ mask MASK ]\n" \ "\n" \ - "Example: meta(nfmark gt 24)\n" \ + "Example: meta(nf_mark gt 24)\n" \ " meta(indev shift 1 eq \"ppp\")\n" \ " meta(tcindex mask 0xf0 eq 0xf0)\n" \ "\n" \