def from_bytes(rawbytes):
        '''
        Takes a byte string as a parameter and returns a list of
        ICMPv6Option objects.
        '''
        icmpv6popts = ICMPv6OptionList()

        i = 0
        while i < len(rawbytes):
            opttype = rawbytes[i]
            optnum = ICMPv6OptionNumber(opttype)
            obj = ICMPv6OptionClasses[optnum]()
            eaten = obj.from_bytes(rawbytes[i:])
            i += eaten
            icmpv6popts.append(obj)
        return icmpv6popts
def from_bytes ( rawbytes ) : icmpv6popts = ICMPv6OptionList ( ) i = 0 while i < len ( rawbytes ) : opttype = rawbytes [ i ] optnum = ICMPv6OptionNumber ( opttype ) obj = ICMPv6OptionClasses [ optnum ] ( ) eaten = obj . from_bytes ( rawbytes [ i : ] ) i += eaten icmpv6popts . append ( obj ) return icmpv6popts
Takes a byte string as a parameter and returns a list of
        ICMPv6Option objects.