Commit 19d7100
route/route6-change-gw: Fix error "RTNETLINK answers: File exists"
Use ip route change instead of adding and deleting route (the same
approach route4-change-gw uses).
This prevents occasional rtnetlink error "RTNETLINK answers: File exists"
when route already exists.
Signed-off-by:jian yang <[email protected]>
[pvorel: adjusted commit message]
Signed-off-by: Petr Vorel <[email protected]>1 parent a78e154 commit 19d7100
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
| 248 | + | |
250 | 249 | | |
251 | 250 | | |
252 | 251 | | |
| |||
0 commit comments