Berkeley packet filter code adapting for kernel >= 3.15.