pcap: be more strict when checking available space

Signed-off-by: Luka Perkov <luka.perkov@sartura.hr>