diff options
Diffstat (limited to 'src/network/networkd-nexthop.c')
-rw-r--r-- | src/network/networkd-nexthop.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/network/networkd-nexthop.c b/src/network/networkd-nexthop.c index ed9d621587..143ecce6c4 100644 --- a/src/network/networkd-nexthop.c +++ b/src/network/networkd-nexthop.c @@ -565,16 +565,12 @@ static bool nexthop_is_ready_to_configure(Link *link, const NextHop *nexthop) { return gateway_is_ready(link, FLAGS_SET(nexthop->flags, RTNH_F_ONLINK), nexthop->family, &nexthop->gw); } -int request_process_nexthop(Request *req) { - NextHop *nexthop; - Link *link; +int nexthop_process_request(Request *req, Link *link, NextHop *nexthop) { int r; assert(req); - assert(req->type == REQUEST_TYPE_NEXTHOP); - - nexthop = ASSERT_PTR(req->nexthop); - link = ASSERT_PTR(req->link); + assert(link); + assert(nexthop); if (!nexthop_is_ready_to_configure(link, nexthop)) return 0; |