libubus: fix data type of request sequence counter. fixes hang after ~64K requests
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
4b9ed896cf
commit
3642af8097
1 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ struct ubus_context {
|
|||
struct uloop_fd sock;
|
||||
|
||||
uint32_t local_id;
|
||||
uint32_t request_seq;
|
||||
uint16_t request_seq;
|
||||
int stack_depth;
|
||||
|
||||
void (*connection_lost)(struct ubus_context *ctx);
|
||||
|
@ -141,7 +141,7 @@ struct ubus_object_data {
|
|||
struct ubus_request_data {
|
||||
uint32_t object;
|
||||
uint32_t peer;
|
||||
uint32_t seq;
|
||||
uint16_t seq;
|
||||
bool deferred;
|
||||
};
|
||||
|
||||
|
@ -156,7 +156,7 @@ struct ubus_request {
|
|||
bool notify;
|
||||
|
||||
uint32_t peer;
|
||||
uint32_t seq;
|
||||
uint16_t seq;
|
||||
|
||||
ubus_data_handler_t raw_data_cb;
|
||||
ubus_data_handler_t data_cb;
|
||||
|
|
Loading…
Add table
Reference in a new issue