Checked IP header length for IP packet filters.

Review: https://reviews.apache.org/r/23525