diff options
author | Luc Provoost <luc.provoost@intel.com> | 2021-03-22 17:10:36 +0100 |
---|---|---|
committer | Luc Provoost <luc.provoost@intel.com> | 2021-03-22 17:20:48 +0100 |
commit | 6cc79cf61cd3375b3e12956bb9ec3284a8e7440f (patch) | |
tree | 328005f2cf81cc775711a1bac34636921efe7379 /VNFs/DPPD-PROX/handle_master.c | |
parent | d6dbd2b75d78d40e47d5a63fa5c5dd0d54a91307 (diff) |
Ignoring IPV6 routing messages
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>
Diffstat (limited to 'VNFs/DPPD-PROX/handle_master.c')
-rw-r--r-- | VNFs/DPPD-PROX/handle_master.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/VNFs/DPPD-PROX/handle_master.c b/VNFs/DPPD-PROX/handle_master.c index 5389058f..606b76fd 100644 --- a/VNFs/DPPD-PROX/handle_master.c +++ b/VNFs/DPPD-PROX/handle_master.c @@ -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); |