diff options
author | Dave Barach <dave@barachs.net> | 2020-08-06 12:10:09 -0400 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2020-08-06 12:10:50 -0400 |
commit | 11fb09e38ffcbadc2629361377413f3ce12ec4da (patch) | |
tree | 65d2a0a16b6e1fce5bec0dba1368dca5db3bc9e3 /src/plugins/nat | |
parent | 586462fabcc913a5a4fa9115d4b5caf33dfdb347 (diff) |
misc: harmonize names
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ibad744788e200ce012ad88ff59c2c34920742454
Diffstat (limited to 'src/plugins/nat')
-rw-r--r-- | src/plugins/nat/in2out.c | 10 | ||||
-rw-r--r-- | src/plugins/nat/in2out_ed.c | 9 |
2 files changed, 10 insertions, 9 deletions
diff --git a/src/plugins/nat/in2out.c b/src/plugins/nat/in2out.c index 06a2fa1737a..9f5b7cc5709 100644 --- a/src/plugins/nat/in2out.c +++ b/src/plugins/nat/in2out.c @@ -136,13 +136,13 @@ snat_not_translate (snat_main_t * sm, vlib_node_runtime_t * node, &value0)) { /* or is static mappings */ - ip4_address_t dummy_addr; - u16 dummy_port; - u32 dummy_fib_index; + ip4_address_t placeholder_addr; + u16 placeholder_port; + u32 placeholder_fib_index; if (!snat_static_mapping_match (sm, ip0->dst_address, udp0->dst_port, sm->outside_fib_index, - proto0, &dummy_addr, &dummy_port, &dummy_fib_index, 1, 0, 0, 0, 0, - 0)) + proto0, &placeholder_addr, &placeholder_port, + &placeholder_fib_index, 1, 0, 0, 0, 0, 0)) return 0; } else diff --git a/src/plugins/nat/in2out_ed.c b/src/plugins/nat/in2out_ed.c index 4871e78ba52..7153a60353a 100644 --- a/src/plugins/nat/in2out_ed.c +++ b/src/plugins/nat/in2out_ed.c @@ -506,12 +506,13 @@ nat44_ed_not_translate (snat_main_t * sm, vlib_node_runtime_t * node, if (clib_bihash_search_16_8 (&sm->out2in_ed, &kv, &value)) { /* or is static mappings */ - ip4_address_t dummy_addr; - u16 dummy_port; - u32 dummy_fib_index; + ip4_address_t placeholder_addr; + u16 placeholder_port; + u32 placeholder_fib_index; if (!snat_static_mapping_match (sm, ip->dst_address, udp->dst_port, sm->outside_fib_index, proto, - &dummy_addr, &dummy_port, &dummy_fib_index, 1, 0, 0, 0, 0, 0)) + &placeholder_addr, &placeholder_port, &placeholder_fib_index, 1, 0, + 0, 0, 0, 0)) return 0; } else |