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/fw.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/fw.c')
-rw-r--r-- | lib/route/cls/fw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/route/cls/fw.c b/lib/route/cls/fw.c index 61972de..fd91e32 100644 --- a/lib/route/cls/fw.c +++ b/lib/route/cls/fw.c @@ -71,14 +71,14 @@ static int fw_msg_parser(struct rtnl_cls *cls) } if (tb[TCA_FW_ACT]) { - f->cf_act = nla_get_data(tb[TCA_FW_ACT]); + f->cf_act = nl_data_alloc_attr(tb[TCA_FW_ACT]); if (!f->cf_act) return -NLE_NOMEM; f->cf_mask |= FW_ATTR_ACTION; } if (tb[TCA_FW_POLICE]) { - f->cf_police = nla_get_data(tb[TCA_FW_POLICE]); + f->cf_police = nl_data_alloc_attr(tb[TCA_FW_POLICE]); if (!f->cf_police) return -NLE_NOMEM; f->cf_mask |= FW_ATTR_POLICE; |