diff options
author | Matthew Smith <mgsmith@netgate.com> | 2018-07-20 11:52:05 -0500 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2018-07-21 11:56:10 +0000 |
commit | e3750671423e70283dd1e60c53ddffdfe651ecbb (patch) | |
tree | 1f44eb63105f5258fc70f37e6eea03680bb82e51 /src/vnet/ip/ip4_forward.c | |
parent | 2a03efe4c2d716de4cfd032594f4f1e88859d3dd (diff) |
fix IP directed broadcast node declarations
The dev build ('make build') was failing because
ip4_rewrite_bcast() and ip6_rewrite_bcast() are declared static
and were not referenced.
The node functions that were set for directed broadcast rewrite:
ip4_rewrite_bcast_node - ip4_rewrite()
ip6_rewrite_bcast_node - ip6_rewrite()
Changed to:
ip4_rewrite_bcast_node - ip4_rewrite_bcast()
ip6_rewrite_bcast_node - ip6_rewrite_bcast()
The release build ('make build-release') succeeds because there is
a VLIB_NODE_FUNCTION_MULTIARCH() call referencing the function. That
macro is empty for dev builds.
Change-Id: I2a05f00ca43d0eae8ff2e3026991e69917003fe1
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to 'src/vnet/ip/ip4_forward.c')
-rw-r--r-- | src/vnet/ip/ip4_forward.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip4_forward.c b/src/vnet/ip/ip4_forward.c index 000710ed817..8d4aead051e 100644 --- a/src/vnet/ip/ip4_forward.c +++ b/src/vnet/ip/ip4_forward.c @@ -2652,7 +2652,7 @@ VLIB_REGISTER_NODE (ip4_rewrite_node) = { }; VLIB_REGISTER_NODE (ip4_rewrite_bcast_node) = { - .function = ip4_rewrite, + .function = ip4_rewrite_bcast, .name = "ip4-rewrite-bcast", .vector_size = sizeof (u32), |