aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorVijayabhaskar Katamreddy <vkatamre@cisco.com>2018-06-28 11:08:29 -0700
committerDamjan Marion <dmarion@me.com>2018-06-29 09:58:39 +0000
commite95d1a1a081e96989740eb1b46ed83ffb6fa0cc0 (patch)
tree0bf989788a15ff211c070b6ef9f546b4b8daaa94 /src/vnet
parentc667ffd4af4bb0a0576ceefcc29e3bb086a823c2 (diff)
Removing the static keyword do_fragment routines, so that could be accessed outside the ip_frag nodes
Change-Id: I46d3d10fa763fcf7a579620ec7cf1b204a53bce8 Signed-off-by: Vijayabhaskar Katamreddy <vkatamre@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/ip/ip_frag.c4
-rw-r--r--src/vnet/ip/ip_frag.h7
2 files changed, 8 insertions, 3 deletions
diff --git a/src/vnet/ip/ip_frag.c b/src/vnet/ip/ip_frag.c
index 1207ec54b49..9f9373857b9 100644
--- a/src/vnet/ip/ip_frag.c
+++ b/src/vnet/ip/ip_frag.c
@@ -46,7 +46,7 @@ format_ip_frag_trace (u8 * s, va_list * args)
static u32 running_fragment_id;
-static void
+void
ip4_frag_do_fragment (vlib_main_t * vm, u32 pi, u32 ** buffer,
ip_frag_error_t * error)
{
@@ -305,7 +305,7 @@ ip4_frag (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame)
}
-static void
+void
ip6_frag_do_fragment (vlib_main_t * vm, u32 pi, u32 ** buffer,
ip_frag_error_t * error)
{
diff --git a/src/vnet/ip/ip_frag.h b/src/vnet/ip/ip_frag.h
index 348f5a2fbc6..9d19299e2a5 100644
--- a/src/vnet/ip/ip_frag.h
+++ b/src/vnet/ip/ip_frag.h
@@ -84,7 +84,12 @@ typedef enum
void ip_frag_set_vnet_buffer (vlib_buffer_t * b, u16 offset, u16 mtu,
u8 next_index, u8 flags);
-
+void
+ip4_frag_do_fragment (vlib_main_t * vm, u32 pi, u32 ** buffer,
+ ip_frag_error_t * error);
+void
+ip6_frag_do_fragment (vlib_main_t * vm, u32 pi, u32 ** buffer,
+ ip_frag_error_t * error);
#endif /* ifndef IP_FRAG_H */
/*