summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip4_punt_drop.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-07-02 10:56:57 +0200
committerMohsin Kazmi <sykazmi@cisco.com>2020-07-02 11:00:39 +0200
commitc6eae9c079defa4812270945d614c4598db262d8 (patch)
tree827d438b77362f7b57bf4dbcdf97234e2b0475c3 /src/vnet/ip/ip4_punt_drop.c
parentd25147d58117a573fd2fc04cdfa76339fa1cdf22 (diff)
ip: fix the order in ip4 punt redirect
Type: fix Fixes: a84cb715f5a4366dd2f32de18ad92bec566924da Change-Id: Id448d6ae9cfdd3122e8187121c509412835117c5 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip4_punt_drop.c')
-rw-r--r--src/vnet/ip/ip4_punt_drop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/ip/ip4_punt_drop.c b/src/vnet/ip/ip4_punt_drop.c
index 65b2401d219..94c260acc57 100644
--- a/src/vnet/ip/ip4_punt_drop.c
+++ b/src/vnet/ip/ip4_punt_drop.c
@@ -359,8 +359,8 @@ ip4_punt_redirect_cmd (vlib_main_t * vm,
unformat_vnet_sw_interface, vnm, &rx_sw_if_index))
;
else if (unformat (line_input, "via %U %U",
- unformat_ip4_address, unformat_vnet_sw_interface,
- &nh.ip4, vnm, &tx_sw_if_index))
+ unformat_ip4_address, &nh.ip4,
+ unformat_vnet_sw_interface, vnm, &tx_sw_if_index))
;
else if (unformat (line_input, "via %U",
unformat_vnet_sw_interface, vnm, &tx_sw_if_index))