Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to Convert IP Address into Integer in Contiki Cooja Simulator?

Convert IP address into integer in contiki cooja simulator

Contiki Cooja Simulator Steps to Convert the IP Address into Integer

Description

   Convert a textual representation of an IP address to a numerical representation. This function takes a textual representation of an IP address in the form a.b.c.d for IPv4 or a:b:c:d:e:f:g:h for IPv6 and converts it into a numeric IP address representation that can be used by other uIP functions.

Source code

Step 1: In Icmp6.c file, the node id having the dio packet which is IP address change into the numeric value.

IP address change into the numeric value.
Output

Step 2: for example address conversion.
from address into integer.

IP address conversion
																	from IP address into integer.