packet lib: add linux cooked header support

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>