patchlwIP - A Lightweight TCP/IP stack - Patches: patch #9748, Adding support for sending Router...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9748: Adding support for sending Router Advertisement for ND6

Submitter:  yanhc <yanhc>
Submitted:  Sun 27 Jan 2019 12:20:56 PM UTC
   
 
Category:  IPv6 Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Sun 27 Jan 2019 12:26:20 PM UTC, comment #1: 

Configuration parameters in lwipopts.h:

/* LWIP_IPV6_SEND_ROUTER_ADVERTISE==1, nd6 will send ra and accpet rs
     When a netif is up, ra will be sent 3 times after every 2 seconds,
     then, each ra will be sent after every 600 seconds.
     The procedure of ra sending is in nd6_tmr which is called every 1 seconds.
     RFC4861 suggests random ra interval to reduce the probability
     of synchronization with ra from other routers on the same link.
     In our case, there is only one router on one link, so random is unnecesary.
*/
#define LWIP_IPV6_SEND_ROUTER_ADVERTISE   1

#define LWIP_ND6_MAX_INITIAL_RA 3
#define LWIP_ND6_INITIAL_RA_INTERVAL 2
#define LWIP_ND6_NORMAL_RA_INTERVAL 600

yanhc <yanhc>
Sun 27 Jan 2019 12:20:56 PM UTC, original submission:  

Recently I added support for sending Router Advertisement in ND6 and posted here for anyone who is interested in it and anyone who may want to improve it.
3 files are involved, ie, netif.h, icmp6.c, nd6.c.
Currently, router solicitation handling (just skip link layer address option), router advertisement sending are supported.
The attachment is the diff file.

yanhc <yanhc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #46106:  2.1.2_RA.diff added by yanhc (9KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by yanhc (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-27 yanhc Attached File- Added 2.1.2_RA.diff, #46106

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code