1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

route: extend lws_route_uidx_t from 1 byte to 2 bytes

This commit is contained in:
wayneonway 2022-02-21 15:16:35 +08:00 committed by Andy Green
parent fcde566fc6
commit 4fb9a535db
2 changed files with 3 additions and 2 deletions

View file

@ -33,7 +33,8 @@
#include <lwip/sockets.h>
#endif
typedef uint8_t lws_route_uidx_t;
/* cope with large amounts of route information */
typedef uint16_t lws_route_uidx_t;
typedef struct lws_dns_score {
uint8_t precedence;

View file

@ -103,7 +103,7 @@ _lws_routing_table_dump(struct lws_context *cx)
lws_route_uidx_t
_lws_route_get_uidx(struct lws_context *cx)
{
uint8_t ou;
lws_route_uidx_t ou;
if (!cx->route_uidx)
cx->route_uidx++;