From 30147e74a4f0879ceb4ded116410d36b5048245b Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 14 2021 14:40:59 +0000 Subject: Apply patch 0005-m_mpls-test-the-mac_push-action-after-modify.patch patch_name: 0005-m_mpls-test-the-mac_push-action-after-modify.patch present_in_specfile: true location_in_specfile: 5 --- diff --git a/tc/m_mpls.c b/tc/m_mpls.c index cb8019b..2c3752b 100644 --- a/tc/m_mpls.c +++ b/tc/m_mpls.c @@ -99,14 +99,14 @@ static int parse_mpls(struct action_util *a, int *argc_p, char ***argv_p, if (check_double_action(action, *argv)) return -1; action = TCA_MPLS_ACT_PUSH; - } else if (matches(*argv, "mac_push") == 0) { - if (check_double_action(action, *argv)) - return -1; - action = TCA_MPLS_ACT_MAC_PUSH; } else if (matches(*argv, "modify") == 0) { if (check_double_action(action, *argv)) return -1; action = TCA_MPLS_ACT_MODIFY; + } else if (matches(*argv, "mac_push") == 0) { + if (check_double_action(action, *argv)) + return -1; + action = TCA_MPLS_ACT_MAC_PUSH; } else if (matches(*argv, "dec_ttl") == 0) { if (check_double_action(action, *argv)) return -1;