Home
My Page
Projects
OpenVAS

[#1008] Function get_ip_element() returning flipped bytes for ip_id element

Date:
2009-05-19 13:05
Priority:
3
State:
Open
Submitted by:
Goran Licina (glicina)
Assigned to:
Nobody (None)
Architecture:
32 bits
Product:
OpenVAS
Operating System:
Linux
Component:
None
Version:
2.0.1
Severity:
None
Resolution:
None
Hardware:
PC
URL:
 
Summary:
Function get_ip_element() returning flipped bytes for ip_id element

Detailed description
NASL function get_ip_element() returned wrong results when extracting IP_ID value from received ICMP packet. Example:



get_ip_element(element : "ip_id", ip : ret);



Perhaps, if IP_ID value of received packet was 0xAABB (as seen by packet sniffers tcpdump and tshark), function returned value 0xBBAA (flipped bytes).



Workaround is using symmetric number for IP_ID (0xBABA).

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item


This site is hosted by Intevation GmbH