From: Vijayabhaskar Katamreddy Date: Thu, 28 Jun 2018 18:08:29 +0000 (-0700) Subject: Removing the static keyword do_fragment routines, so that could be accessed outside... X-Git-Tag: v18.07-rc1~75 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=e95d1a1a081e96989740eb1b46ed83ffb6fa0cc0;p=vpp.git 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 --- 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 */ /*