def _dhcp_options(dhcp_options):
    """Dhcp options returned by scapy is not in usable format

    [('message-type', 2), ('server_id', '192.168.0.5'),
        ('name_server', '192.168.0.1', '192.168.0.2'), 'end']
    """
    for option in dhcp_options:
        if isinstance(option, (tuple, list)):
            header = option[0]
            if len(option[1:]) > 1:
                yield header, option
            else:
                yield header, option[1]
