skbedit to default to pipe

Allow skbedit to be used as is in an action chain by default
without need to specify pipe

Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com>
This commit is contained in:
Jamal Hadi Salim 2013-12-21 16:38:36 -05:00 committed by Stephen Hemminger
parent 5c0aec93a5
commit 64b7db4db7
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ parse_skbedit(struct action_util *a, int *argc_p, char ***argv_p, int tca_id,
argv++; argv++;
} }
sel.action = TC_ACT_PIPE;
if (argc) { if (argc) {
if (matches(*argv, "reclassify") == 0) { if (matches(*argv, "reclassify") == 0) {
sel.action = TC_ACT_RECLASSIFY; sel.action = TC_ACT_RECLASSIFY;