Use shared-pointer for paket buffers

Get length of packet to transmit from packet-buffer
Remove malloc/free for packet buffer from services/diag module

Change-Id: If005e21a1bbb8439e596fe161f58d365a575bb2f
Merge "Use shared-pointer for paket buffers"