Libubox: number of entries in blobmsg table object?

What is the correct way of finding the number of entries in a table? I tried

numipv6routes = blobmsg_data_len(tb[ROUTE_TABLE_IPV6]) / sizeof(blobmsg_data(tb[ROUTE_TABLE_IPV6]

However, I also looked at libubox for each function.
I think it should somehow be?

blobmsg_data_len(attr)/blob_pad_len(pos)

Ah okay, it is

numipv6routes = blobmsg_data_len(tb[ROUTE_TABLE_IPV6]) / blob_pad_len(blobmsg_data(tb[ROUTE_TABLE_IPV6]));

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.