This function, when called with extbuf as a NULL pointer and
extlen as 0, returns the total number of bytes in an extension
header, including final padding.
If you specify extbuf as a valid pointer and a valid extlen
argument, the function returns the same information as in the
previous case, increments the buffer pointer, and verifies that
the buffer is large enough to hold the header.