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 Add the Variable in Neighbor Address in RPL using Contiki Cooja Simulator?

Add the variable in neighbor address in rpl using cooja

Steps for adding the variable in neighbor address in rpl using cooja

Description:

"Neighbor Discovery Optimizations for 6LoWPAN networks" (6LoWPAN ND) adapts IPv6 ND for operations over energy-constrained LLNs.To access the variable during neighbor list access, it is appended in the neighbor address.

Step-1

   open a file at location
->Home/user/contiki/core/
net/rpl/ipv6/uip-ds6-nbr.c
handle the neighbor address in rpl.

uip_ds6_nbr_add(const uip_ipaddr_t *ipaddr, const uip_lladdr_t *lladdr, uint8_t isrouter, uint8_t state, int recvcount) {

// each node neighbor address maintained

}

for(nbr1= nbr_table_head(ds6_neighbors); nbr1 != NULL; nbr1 = nbr_table_next(ds6_neighbors, nbr1)) {

neighborcount++;

nbr_id1 = &nbr1->ipaddr;

Recvcount = nbr1->nb_recvc; // received Count Accessed from neighbor address

}

Output
Access the variable during neighbor list