diff options
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index fb36f19..970ff1c 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -2181,7 +2181,7 @@ AddCommand(struct cmdargs const *arg) } } - if (bundle_SetRoute(arg->bundle, RTM_ADD, dest, gateway, netmask, + if (rt_Set(arg->bundle, RTM_ADD, dest, gateway, netmask, arg->cmd->args ? 1 : 0, (addrs & ROUTE_GWHISADDR) ? 1 : 0) && addrs != ROUTE_STATIC) route_Add(&arg->bundle->ncp.ipcp.route, addrs, dest, netmask, gateway); @@ -2222,7 +2222,7 @@ DeleteCommand(struct cmdargs const *arg) addrs = ROUTE_STATIC; } none.s_addr = INADDR_ANY; - bundle_SetRoute(arg->bundle, RTM_DELETE, dest, none, none, + rt_Set(arg->bundle, RTM_DELETE, dest, none, none, arg->cmd->args ? 1 : 0, 0); route_Delete(&arg->bundle->ncp.ipcp.route, addrs, dest); } |