Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
vppinfra: change vlib_register_node so it takes format string for node name
[vpp.git]
/
src
/
plugins
/
nat
/
pnat
/
tests
/
pnat_test.c
diff --git
a/src/plugins/nat/pnat/tests/pnat_test.c
b/src/plugins/nat/pnat/tests/pnat_test.c
index
e7d9469
..
f6579dc
100644
(file)
--- a/
src/plugins/nat/pnat/tests/pnat_test.c
+++ b/
src/plugins/nat/pnat/tests/pnat_test.c
@@
-569,7
+569,8
@@
int main(int argc, char **argv) {
ip_checksum_init(vm);
- u32 node_index = vlib_register_node(vm, &pnat_input_node);
+ u32 node_index =
+ vlib_register_node(vm, &pnat_input_node, "%s", pnat_input_node.name);
node = vlib_node_get_runtime(vm, node_index);
assert(node);