diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2008-05-09 12:47:43 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2008-05-09 12:47:43 +0000 |
commit | 7d2781f608897c2eeb83b330e44e299b536026eb (patch) | |
tree | 3c4e6ad1db6f336a1b17c8fad3e4950998c7f47f | |
parent | 5f4f3f98dc2a0f9a3d833884883c7ee164c7c2a3 (diff) |
prio RTP_RIP for inserted routes
-rw-r--r-- | usr.sbin/ripd/kroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ripd/kroute.c b/usr.sbin/ripd/kroute.c index 82528df94fb..85222ee950b 100644 --- a/usr.sbin/ripd/kroute.c +++ b/usr.sbin/ripd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.12 2007/10/24 20:29:30 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.13 2008/05/09 12:47:42 henning Exp $ */ /* * Copyright (c) 2004 Esben Norby <norby@openbsd.org> @@ -739,6 +739,7 @@ send_rtmsg(int fd, int action, struct kroute *kroute) hdr.rtm_version = RTM_VERSION; hdr.rtm_type = action; hdr.rtm_flags = RTF_PROTO3; + hdr.rtm_priority = RTP_RIP; if (action == RTM_CHANGE) /* force PROTO3 reset the other flags */ hdr.rtm_fmask = RTF_PROTO3|RTF_PROTO2|RTF_PROTO1|RTF_REJECT|RTF_BLACKHOLE; |