summaryrefslogtreecommitdiffstats
path: root/examples/rtnl/rtnl-addr-dump.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2018-01-18 08:52:20 -0800
committerPablo Neira Ayuso <pablo@netfilter.org>2018-01-19 03:29:36 +0100
commit577ad36084ffc76dadb98bf580b9811ff45ad79d (patch)
treef4839a011a10e6a1e5286b5b7e1b777695bad987 /examples/rtnl/rtnl-addr-dump.c
parentfbe0f33b45abd585eb9f52cb56d751a750667dc6 (diff)
examples: rtnl-addr-dump: fix typo
The example about addresses uses link attributes when it meant to use address attributes. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'examples/rtnl/rtnl-addr-dump.c')
-rw-r--r--examples/rtnl/rtnl-addr-dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rtnl/rtnl-addr-dump.c b/examples/rtnl/rtnl-addr-dump.c
index 6b4e52e..b92b75f 100644
--- a/examples/rtnl/rtnl-addr-dump.c
+++ b/examples/rtnl/rtnl-addr-dump.c
@@ -34,7 +34,7 @@ static int data_attr_cb(const struct nlattr *attr, void *data)
static int data_cb(const struct nlmsghdr *nlh, void *data)
{
- struct nlattr *tb[IFLA_MAX+1] = {};
+ struct nlattr *tb[IFA_MAX + 1] = {};
struct ifaddrmsg *ifa = mnl_nlmsg_get_payload(nlh);
printf("index=%d family=%d ", ifa->ifa_index, ifa->ifa_family);