RFC2460 defines some extension headers, like hop-by-hop, Routing Options...etc. All these headers seem to have the next header type and header extension length in the beginning of the header.
However there is one extension header called "Encapsulating Security Payload" defined in RFC4303 seems don't have this property. The next header and pad length are followed by a variable data, so how can I parse that?
Thanks