Skip to content

Commit

Permalink
revert changes checking type of received packet
Browse files Browse the repository at this point in the history
  • Loading branch information
juga0 committed Apr 23, 2017
1 parent 098984d commit 78ee916
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dhcpcanon/dhcpcanon_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,21 @@ def now():


def is_Offer(packet):
if DHCP in packet and packet[DHCP].options[0][1] == 'offer':
if DHCP in packet and DHCPTypes[packet[DHCP].options[0][1]] == 'offer':
logger.debug('Packet is Offer.')
return True
return False


def is_NAK(packet):
if DHCP in packet and packet[DHCP].options[0][1] == 'nak':
if DHCP in packet and DHCPTypes[packet[DHCP].options[0][1]] == 'nak':
logger.debug('Packet is NAK.')
return True
return False


def is_ACK(packet):
if DHCP in packet and packet[DHCP].options[0][1] == 'ack':
if DHCP in packet and DHCPTypes[packet[DHCP].options[0][1]] == 'ack':
logger.debug('Packet is ACK.')
return True
return False
Expand Down

0 comments on commit 78ee916

Please sign in to comment.