

def serialize(self):
    if (self.length == 0):
        self.length = len(self.value)
    options_pack_str = ('!BB%ds' % self.length)
    return struct.pack(options_pack_str, self.tag, self.length, self.value)

dataset/ETHPy150Open osrg/ryu/ryu/lib/packet/dhcp.py option.serialize/original