

def serialize(self, payload, prev):
    seri_opt = self.options.serialize()
    pack_str = ('%s%ds' % (self._DHCP_PACK_STR, self.options.options_len))
    return struct.pack(pack_str, self.op, self.htype, self.hlen, self.hops, self.xid, payload.secs, self.flags, addrconv.ipv4.text_to_bin(self.ciaddr), addrconv.ipv4.text_to_bin(self.yiaddr), addrconv.ipv4.text_to_bin(self.siaddr), addrconv.ipv4.text_to_bin(self.giaddr), addrconv.mac.text_to_bin(self.chaddr), self.sname.encode('ascii'), self.boot_file, seri_opt)

dataset/ETHPy150Open osrg/ryu/ryu/lib/packet/dhcp.py dhcp.serialize/VarMisuse@69/90 `self`->`payload`