Skip to content

Commit

Permalink
Use larger netlink buffer size
Browse files Browse the repository at this point in the history
Signed-off-by: DL6ER <dl6er@dl6er.de>
  • Loading branch information
DL6ER committed Jan 25, 2025
1 parent 9c69a0b commit 1b3c3da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tools/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ bool nlroutes(cJSON *routes, const bool detailed);
bool nladdrs(cJSON *interfaces, const bool detailed);
bool nllinks(cJSON *interfaces, const bool detailed);


#define BUFLEN NLMSG_SPACE(4096)
// define the maximum buffer length for netlink messages
#define RAW_BUFLEN 8192
#define BUFLEN NLMSG_SPACE(RAW_BUFLEN)

#define for_each_nlmsg(n, buf, len) \
for (n = (struct nlmsghdr*)buf; \
Expand Down

0 comments on commit 1b3c3da

Please sign in to comment.