aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash/entry/patch_l3fwd_flip_routes
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries/bash/entry/patch_l3fwd_flip_routes')
-rwxr-xr-xresources/libraries/bash/entry/patch_l3fwd_flip_routes10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/libraries/bash/entry/patch_l3fwd_flip_routes b/resources/libraries/bash/entry/patch_l3fwd_flip_routes
new file mode 100755
index 0000000000..e0b204eb9c
--- /dev/null
+++ b/resources/libraries/bash/entry/patch_l3fwd_flip_routes
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+patch --ignore-whitespace l3fwd_lpm.c <<"_EOF"
+44,45c44,45
+< {IPv4(1, 1, 1, 0), 24, 0},
+< {IPv4(2, 1, 1, 0), 24, 1},
+---
+> {IPv4(1, 1, 1, 0), 24, 1},
+> {IPv4(2, 1, 1, 0), 24, 0},
+_EOF