mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
netlink: always delete route if it exists
https://github.com/warmcat/libwebsockets/issues/2567
This commit is contained in:
parent
1f2912d383
commit
058f97e687
3 changed files with 0 additions and 4 deletions
|
@ -1375,7 +1375,6 @@ _lws_routing_table_dump(struct lws_context *cx);
|
|||
|
||||
#define LRR_IGNORE_PRI (1 << 0)
|
||||
#define LRR_MATCH_SRC (1 << 1)
|
||||
#define LRR_JUST_CHECK (1 << 2)
|
||||
|
||||
lws_route_t *
|
||||
_lws_route_remove(struct lws_context_per_thread *pt, lws_route_t *robj, int flags);
|
||||
|
|
|
@ -154,8 +154,6 @@ _lws_route_remove(struct lws_context_per_thread *pt, lws_route_t *robj, int flag
|
|||
((flags & LRR_IGNORE_PRI) ||
|
||||
robj->priority == rou->priority)
|
||||
) {
|
||||
if (flags & LRR_JUST_CHECK)
|
||||
return rou;
|
||||
lwsl_cx_info(pt->context, "deleting route");
|
||||
_lws_route_pt_close_route_users(pt, robj->uidx);
|
||||
lws_dll2_remove(&rou->list);
|
||||
|
|
|
@ -372,7 +372,6 @@ ana:
|
|||
|
||||
/* returns zero on match already in table */
|
||||
rmat = _lws_route_remove(pt, &robj, LRR_MATCH_SRC |
|
||||
LRR_JUST_CHECK |
|
||||
LRR_IGNORE_PRI);
|
||||
lws_pt_unlock(pt);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue