dhcpcanon/dhcpcaputils.py
def isoffer(packet):
    """."""
    if DHCP in packet and (DHCPTypes.get(packet[DHCP].options[0][1]) ==
                           'offer' or packet[DHCP].options[0][1] == "offer"):
        logger.debug('Packet is Offer.')
        return True
    return False
def isoffer(packet):
    """."""
    if DHCP in packet and (DHCPTypes.get(packet[DHCP].options[0][1]) ==
                           'offer' or packet[DHCP].options[0][1] == "offer"):
        logger.debug('Packet is Offer.')
        return True
    return False
def isoffer ( packet ) : if DHCP in packet and ( DHCPTypes . get ( packet [ DHCP ] . options [ 0 ] [ 1 ] ) == 'offer' or packet [ DHCP ] . options [ 0 ] [ 1 ] == "offer" ) : logger . debug ( 'Packet is Offer.' ) return True return False
.
.