Get rid of the COOKextradata struct. And use valid C to parse the extradata.