mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
route: extend lws_route_uidx_t from 1 byte to 2 bytes
This commit is contained in:
parent
155b1c83b5
commit
73b61f6a2e
2 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,8 @@
|
||||||
#include <lwip/sockets.h>
|
#include <lwip/sockets.h>
|
||||||
#endif
|
#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 {
|
typedef struct lws_dns_score {
|
||||||
uint8_t precedence;
|
uint8_t precedence;
|
||||||
|
|
|
@ -103,7 +103,7 @@ _lws_routing_table_dump(struct lws_context *cx)
|
||||||
lws_route_uidx_t
|
lws_route_uidx_t
|
||||||
_lws_route_get_uidx(struct lws_context *cx)
|
_lws_route_get_uidx(struct lws_context *cx)
|
||||||
{
|
{
|
||||||
uint8_t ou;
|
lws_route_uidx_t ou;
|
||||||
|
|
||||||
if (!cx->route_uidx)
|
if (!cx->route_uidx)
|
||||||
cx->route_uidx++;
|
cx->route_uidx++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue