X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fplugins%2Fsctp%2Fsctp_output_node.c;fp=src%2Fvnet%2Fsctp%2Fsctp_output_node.c;h=7bf2e896acc87ede0e4ce5bc62c4a2491211ec07;hp=b36c49d3d24028207398fe36948eae77d3b67929;hb=3ffe6cadf;hpb=1cfcb78940580c8e3645fca0419d32f9286e942d diff --git a/src/vnet/sctp/sctp_output_node.c b/src/plugins/sctp/sctp_output_node.c similarity index 97% rename from src/vnet/sctp/sctp_output_node.c rename to src/plugins/sctp/sctp_output_node.c index b36c49d3d24..7bf2e896acc 100644 --- a/src/vnet/sctp/sctp_output_node.c +++ b/src/plugins/sctp/sctp_output_node.c @@ -12,8 +12,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include -#include +#include +#include #include #include @@ -35,7 +35,7 @@ ip4_sctp_compute_checksum (vlib_main_t * vm, vlib_buffer_t * p0, static char *sctp_error_strings[] = { #define sctp_error(n,s) s, -#include +#include #undef sctp_error }; @@ -102,8 +102,8 @@ sctp46_output_inline (vlib_main_t * vm, b0 = vlib_get_buffer (vm, bi0); sctp_conn = - sctp_connection_get (vnet_buffer (b0)->sctp.connection_index, - my_thread_index); + sctp_connection_get (sctp_buffer_opaque (b0)-> + sctp.connection_index, my_thread_index); if (PREDICT_FALSE (sctp_conn == 0)) { @@ -112,7 +112,7 @@ sctp46_output_inline (vlib_main_t * vm, goto done; } - u8 idx = vnet_buffer (b0)->sctp.subconn_idx; + u8 idx = sctp_buffer_opaque (b0)->sctp.subconn_idx; th0 = vlib_buffer_get_current (b0);