Ticket #105 (closed defect: fixed)

Opened 7 months ago

Last modified 2 months ago

Second IP in DHCPOptions is not printed in a human readble format

Reported by: thomas@stewarts.org.uk Assigned to: pbi
Priority: minor Milestone:
Component: Scapy Version:
Keywords: dhcp DHCPOptions name_server Cc:

Description

When decoding DHCP, if any options returned have more than one IP, the second IP is not printed in a human readable format. The dict DHCPOptions uses the class IPField to hold these options, however some of these options can contain more than one IP address, e.g. name_server.

Using Scapy version 1.2.0.2:

>>> conf.checkIPaddr=0
>>> res=dhcp_request().payload.payload.payload.payload.options
Begin emission:
Finished to send 1 packets.
*
Received 1 packets, got 1 answers, remaining 0 packets
>>> for o in res:
...   if o[0] == 'name_server':
...     print o
... 
('name_server', '1.2.3.4', '\x01\x02\x03\x05')
>>> 

Attachments

Change History

08/16/08 16:27:40 changed by pbi

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [07926fd7d007]


Add/Change #105 (Second IP in DHCPOptions is not printed in a human readble format)




Change Properties
Action