From 3590efdb36e7192ab935403c96039a3f78c9328a Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 23 May 2016 15:38:59 +0000 Subject: Filter our RTM_GET messages which are not from us. Pulled from ospfd. Original author: claudio@ --- usr.sbin/ldpd/kroute.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ldpd/kroute.c b/usr.sbin/ldpd/kroute.c index ff08824c424..6ee743d5ebb 100644 --- a/usr.sbin/ldpd/kroute.c +++ b/usr.sbin/ldpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.49 2016/05/23 15:16:16 renato Exp $ */ +/* $OpenBSD: kroute.c,v 1.50 2016/05/23 15:38:58 renato Exp $ */ /* * Copyright (c) 2009 Michele Marchetto @@ -1287,6 +1287,10 @@ rtmsg_process(char *buf, size_t len) if (rtm->rtm_tableid != 0) continue; + if (rtm->rtm_type == RTM_GET && + rtm->rtm_pid != kr_state.pid) + continue; + if ((sa = rti_info[RTAX_DST]) == NULL) continue; -- cgit v1.2.3