libmctp: Split padding in pktbuf into header and trailer
The astlpc binding will shortly make use of a medium-specific trailer to
implement a CRC-32 integrity check over packet data. Allow for
medium-specific trailer data in the pktbuf in order to remove the need
for a bounce-buffer. The binding will trim the pktbuf to the payload
length before passing the instance up the stack.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ib215a552ff218b007f7f119c5235fbc75d9ca6cb
diff --git a/tests/test-utils.c b/tests/test-utils.c
index c9defe2..d1a306c 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -30,7 +30,8 @@
test->binding.version = 1;
test->binding.tx = mctp_binding_test_tx;
test->binding.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU);
- test->binding.pkt_pad = 0;
+ test->binding.pkt_header = 0;
+ test->binding.pkt_trailer = 0;
return test;
}