diff options
| author | 2016-05-23 15:38:58 +0000 | |
|---|---|---|
| committer | 2016-05-23 15:38:58 +0000 | |
| commit | 6951d6fcfd8fd207d6ba9333374ba8411b9f8d5f (patch) | |
| tree | deaf628c55da5edfafd95e033306e9736ca6bd57 | |
| parent | Sort configuration options in ldpd.conf(5). (diff) | |
| download | wireguard-openbsd-6951d6fcfd8fd207d6ba9333374ba8411b9f8d5f.tar.xz wireguard-openbsd-6951d6fcfd8fd207d6ba9333374ba8411b9f8d5f.zip | |
Filter our RTM_GET messages which are not from us.
Pulled from ospfd. Original author: claudio@
| -rw-r--r-- | usr.sbin/ldpd/kroute.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 <michele@openbsd.org> @@ -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; |
