

def serialize(self):
    seri_opt = addrconv.ipv4.text_to_bin(self.magic_cookie)
    for opt in self.option_list:
        seri_opt += opt.serialize()
    seri_opt += binascii.a2b_hex(('%x' % DHCP_END_OPT))
    if (self.options_len == 0):
        self.options_len = len(seri_opt)
    return seri_opt

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