get_nextheader function is working