Added implementation for LiSA of buffer_alloc function

This function is needeed to retrieve the information about
the interfaces and will be used by multiple function.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>