diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-05-14 16:26:47 (GMT) |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-05-14 16:26:47 (GMT) |
commit | eed2afaab7aa72fae393a395a8879b91a922ff5e (patch) | |
tree | e28561df020521ed10854fdfa07c0e0c7e701c13 /lib/route/cls/u32.c | |
parent | 7179b2d85964ef8fec8eca3ad661de9f38daa0ba (diff) | |
download | libnl-eed2afaab7aa72fae393a395a8879b91a922ff5e.zip libnl-eed2afaab7aa72fae393a395a8879b91a922ff5e.tar.gz libnl-eed2afaab7aa72fae393a395a8879b91a922ff5e.tar.bz2 |
Remove obsolete nla_get_addr() and nla_get_data()
Replaces obsolete calls to nla_get_addr() and nla_get_data()
with nl_addr_alloc_attr() respectively nl_data_alloc_attr().
Also fixes missing error handling while parsing routing multipath
configuration.
Diffstat (limited to 'lib/route/cls/u32.c')
-rw-r--r-- | lib/route/cls/u32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/route/cls/u32.c b/lib/route/cls/u32.c index 1f881d3..9ed05dd 100644 --- a/lib/route/cls/u32.c +++ b/lib/route/cls/u32.c @@ -97,7 +97,7 @@ static int u32_msg_parser(struct rtnl_cls *cls) } if (tb[TCA_U32_SEL]) { - u->cu_selector = nla_get_data(tb[TCA_U32_SEL]); + u->cu_selector = nl_data_alloc_attr(tb[TCA_U32_SEL]); if (!u->cu_selector) goto errout_nomem; u->cu_mask |= U32_ATTR_SELECTOR; @@ -119,14 +119,14 @@ static int u32_msg_parser(struct rtnl_cls *cls) } if (tb[TCA_U32_ACT]) { - u->cu_act = nla_get_data(tb[TCA_U32_ACT]); + u->cu_act = nl_data_alloc_attr(tb[TCA_U32_ACT]); if (!u->cu_act) goto errout_nomem; u->cu_mask |= U32_ATTR_ACTION; } if (tb[TCA_U32_POLICE]) { - u->cu_police = nla_get_data(tb[TCA_U32_POLICE]); + u->cu_police = nl_data_alloc_attr(tb[TCA_U32_POLICE]); if (!u->cu_police) goto errout_nomem; u->cu_mask |= U32_ATTR_POLICE; @@ -149,7 +149,7 @@ static int u32_msg_parser(struct rtnl_cls *cls) goto errout; } - u->cu_pcnt = nla_get_data(tb[TCA_U32_PCNT]); + u->cu_pcnt = nl_data_alloc_attr(tb[TCA_U32_PCNT]); if (!u->cu_pcnt) goto errout_nomem; u->cu_mask |= U32_ATTR_PCNT; |