artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32491ce
)
Filter our RTM_GET messages which are not from us.
author
claudio
<claudio@openbsd.org>
Sat, 24 Oct 2015 16:42:18 +0000
(16:42 +0000)
committer
claudio
<claudio@openbsd.org>
Sat, 24 Oct 2015 16:42:18 +0000
(16:42 +0000)
usr.sbin/ospfd/kroute.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ospfd/kroute.c
b/usr.sbin/ospfd/kroute.c
index
b8e5340
..
5878a25
100644
(file)
--- a/
usr.sbin/ospfd/kroute.c
+++ b/
usr.sbin/ospfd/kroute.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: kroute.c,v 1.10
3 2015/09/27 17:31:50 stsp
Exp $ */
+/* $OpenBSD: kroute.c,v 1.10
4 2015/10/24 16:42:18 claudio
Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@
-1370,6
+1370,11
@@
rtmsg_process(char *buf, size_t len)
if (rtm->rtm_tableid != kr_state.rdomain)
continue;
+ if (rtm->rtm_type == RTM_GET &&
+ rtm->rtm_pid != kr_state.pid &&
+ rtm->rtm_pid != 0)
+ continue;
+
if ((sa = rti_info[RTAX_DST]) == NULL)
continue;