Ignoring IPV6 routing messages 49/72249/2
authorLuc Provoost <luc.provoost@intel.com>
Mon, 22 Mar 2021 16:10:36 +0000 (17:10 +0100)
committerLuc Provoost <luc.provoost@intel.com>
Mon, 22 Mar 2021 16:20:48 +0000 (17:20 +0100)
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>
VNFs/DPPD-PROX/handle_master.c

index 5389058..606b76f 100644 (file)
@@ -1014,6 +1014,10 @@ static void handle_route_event(struct task_base *tbase)
        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);