Determine minimum header size more accurately