summaryrefslogtreecommitdiffstats
path: root/examples/rtnl/rtnl-neigh-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rtnl/rtnl-neigh-dump.c')
-rw-r--r--examples/rtnl/rtnl-neigh-dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rtnl/rtnl-neigh-dump.c b/examples/rtnl/rtnl-neigh-dump.c
index f4d5000..786e31d 100644
--- a/examples/rtnl/rtnl-neigh-dump.c
+++ b/examples/rtnl/rtnl-neigh-dump.c
@@ -99,12 +99,12 @@ static int data_cb(const struct nlmsghdr *nlh, void *data)
int main(int argc, char *argv[])
{
+ char buf[MNL_SOCKET_DUMP_SIZE];
+ unsigned int seq, portid;
struct mnl_socket *nl;
- char buf[MNL_SOCKET_BUFFER_SIZE];
struct nlmsghdr *nlh;
struct rtgenmsg *rt;
int ret;
- unsigned int seq, portid;
if (argc != 2) {
fprintf(stderr, "Usage: %s <inet|inet6>\n", argv[0]);