Hi,
to be honest I'm quite annoyed by vague answers. It's like asking someone what he/she does for a living and having an answer like "oh, I see people, do things". The first time it's funny, the second time you think that pushing them in the face is an option (albeit a not socially acceptable one).
Now, why I think that your information is vague ? Because it is.
"do some treatment" - of course. WHERE ?
What kind of option header is it, an HbH or an E2E ?
Do you need to process it in-place or to pass this information to some other layer (e.g., routing) ?
Anyway, extension headers are processed in Ipv6Extension::ProcessOptions. Check the function and you'll see why you had to be more precise.
T.