aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/act_ipt.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2008-01-23 23:35:03 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:11:21 -0500
commit1587bac49f8491b5006a78f8d726111b71757941 (patch)
tree753e9fb452917efd9da6751fa4c6a45442c9fb8d /net/sched/act_ipt.c
parent24beeab539c6f42c4a93e2ff7c3b5f272e60da45 (diff)
[NET_SCHED]: Use typeful attribute parsing helpers
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_ipt.c')
-rw-r--r--net/sched/act_ipt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c
index 5dd701a7bc56..7ab2419b44ec 100644
--- a/net/sched/act_ipt.c
+++ b/net/sched/act_ipt.c
@@ -123,7 +123,7 @@ static int tcf_ipt_init(struct nlattr *nla, struct nlattr *est,
123 123
124 if (tb[TCA_IPT_INDEX] != NULL && 124 if (tb[TCA_IPT_INDEX] != NULL &&
125 nla_len(tb[TCA_IPT_INDEX]) >= sizeof(u32)) 125 nla_len(tb[TCA_IPT_INDEX]) >= sizeof(u32))
126 index = *(u32 *)nla_data(tb[TCA_IPT_INDEX]); 126 index = nla_get_u32(tb[TCA_IPT_INDEX]);
127 127
128 pc = tcf_hash_check(index, a, bind, &ipt_hash_info); 128 pc = tcf_hash_check(index, a, bind, &ipt_hash_info);
129 if (!pc) { 129 if (!pc) {
@@ -140,7 +140,7 @@ static int tcf_ipt_init(struct nlattr *nla, struct nlattr *est,
140 } 140 }
141 ipt = to_ipt(pc); 141 ipt = to_ipt(pc);
142 142
143 hook = *(u32 *)nla_data(tb[TCA_IPT_HOOK]); 143 hook = nla_get_u32(tb[TCA_IPT_HOOK]);
144 144
145 err = -ENOMEM; 145 err = -ENOMEM;
146 tname = kmalloc(IFNAMSIZ, GFP_KERNEL); 146 tname = kmalloc(IFNAMSIZ, GFP_KERNEL);