Make sctp buffers big enough for images
We had multiple problems.
1) kernel buffers were too small so the kernel was delivering partial
packets. Fix was to update the rootfs to increase the buffer size
and check the parameter. Secondary fix was to CHECK that received
packets were the size advertized.
2) Client wasn't configuring it's buffers to be the right size.
Configured the socket to make it big enough.
Change-Id: I276e698943aa5714ff2ca8e1ac73d6975d219eb9
diff --git a/aos/network/sctp_lib.h b/aos/network/sctp_lib.h
index 0f90f87..9a1274a 100644
--- a/aos/network/sctp_lib.h
+++ b/aos/network/sctp_lib.h
@@ -72,6 +72,11 @@
// Read and allocate a message.
aos::unique_c_ptr<Message> ReadSctpMessage(int fd, int max_size);
+// Returns the max network buffer available for reading for a socket.
+size_t ReadRMemMax();
+// Returns the max network buffer available for writing for a socket.
+size_t ReadWMemMax();
+
} // namespace message_bridge
} // namespace aos