configuring ECMP multipath route in linux kernel
Hi,
When we install the linux ECMP routes via the commands "route add -net 12.0.0.0/24 dev eth0" and "route add -net 12.0.0.0/24 dev eth1" we noticed routes are programmed in linux. This we verified by checking by "route" command
But if we do it via c program, via netlink socket programming
rtm_flags |= RTM_F_EQUALIZE;
rta_type = RTA_MULTIPATH;
rta_len = RTA_LENGTH (0);
nlmsg_type = RTM_NEWROUTE
nlmsg_flags |= NLM_F_REPLACE
But no error is seen. but routes are not really programmed. Please let us know if anything is missed in my programming
thanks
viji
|