snep: Fix SNEP fragmentation
authorSamuel Ortiz <sameo@linux.intel.com>
Sat, 8 Jun 2013 00:11:18 +0000 (02:11 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 8 Jun 2013 00:23:30 +0000 (02:23 +0200)
commit68ec1eb2e96a92d0a814309d60856151eb0d1581
tree5ef0f9ff6388cd3045ac42e430305a4f2ca2af25
parentb9fce4fe8622ffeb6d3d90b41f3b0a76e60b120b
snep: Fix SNEP fragmentation

The intial request is kept through the snep_data and
snep_core_process_request no longer relies on the last read frame to
build an answer but only on the snep_data pointer.
Without this fix, each fragment from a fragmented PUT was handled as
a complete SNEP frame (header included) which caused process_request
to get completely confused about how to handle fragments.
Now that snep_core_read is fixed, the fragmentation SNEP unit test can
be fixed as well.
include/snep.h
plugins/snep.c
src/snep.c
unit/test-snep-read.c