The code was only written to deal with IPV4 routing messages. If we
receive an IPV6 routing message, we are now ignoring that message.
Change-Id: I0f8044a0331235639bf5cab9abb9c8ce55c3522d
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
int rtm_family = rtmsg->rtm_family;
if ((rtm_family == AF_INET) && (rtmsg->rtm_table != RT_TABLE_MAIN) &&(rtmsg->rtm_table != RT_TABLE_LOCAL))
return;
+ if (rtm_family == AF_INET6) {
+ plog_warn("Unhandled IPV6 routing message\n");
+ return;
+ }
int dst_len = rtmsg->rtm_dst_len;
struct rtattr *rta = (struct rtattr *)RTM_RTA(rtmsg);