Skip to content

Commit 0f4b283

Browse files
committed
NetBSD: Delete RTF_CONNECTED route when changing it.
We need to flush anything dynamically created.
1 parent 8e1b036 commit 0f4b283

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/route.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@
6464
(N) = (S))
6565
#endif
6666

67+
/*
68+
* For our purposes, RTF_CONNECTED is the same as RTF_CLONING.
69+
* If we change the route, we want to flush anything dynamically created.
70+
*/
71+
#if defined(BSD) && !defined(RTF_CLONING) && defined(RTF_CONNECTED)
72+
#define RTF_CLONING RTF_CONNECTED
73+
#endif
74+
6775
#ifdef RT_FREE_ROUTE_TABLE_STATS
6876
static size_t croutes;
6977
static size_t nroutes;

0 commit comments

Comments
 (0)