diff options
author | Patrick McHardy <kaber@trash.net> | 2008-01-23 01:11:33 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:11:11 -0500 |
commit | add93b610a4e66d36d0cf0b2596c3d3bcfdaee39 (patch) | |
tree | 073873879eb3b87981ee015f0f1ca48da8f1c696 /net/sched/em_text.c | |
parent | 1e90474c377e92db7262a8968a45c1dd980ca9e5 (diff) |
[NET_SCHED]: Convert classifiers from rtnetlink to new netlink API
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/em_text.c')
-rw-r--r-- | net/sched/em_text.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/sched/em_text.c b/net/sched/em_text.c index d5cd86efb7d0..853c5ead87fd 100644 --- a/net/sched/em_text.c +++ b/net/sched/em_text.c | |||
@@ -118,11 +118,14 @@ static int em_text_dump(struct sk_buff *skb, struct tcf_ematch *m) | |||
118 | conf.pattern_len = textsearch_get_pattern_len(tm->config); | 118 | conf.pattern_len = textsearch_get_pattern_len(tm->config); |
119 | conf.pad = 0; | 119 | conf.pad = 0; |
120 | 120 | ||
121 | RTA_PUT_NOHDR(skb, sizeof(conf), &conf); | 121 | if (nla_put_nohdr(skb, sizeof(conf), &conf) < 0) |
122 | RTA_APPEND(skb, conf.pattern_len, textsearch_get_pattern(tm->config)); | 122 | goto nla_put_failure; |
123 | if (nla_append(skb, conf.pattern_len, | ||
124 | textsearch_get_pattern(tm->config)) < 0) | ||
125 | goto nla_put_failure; | ||
123 | return 0; | 126 | return 0; |
124 | 127 | ||
125 | rtattr_failure: | 128 | nla_put_failure: |
126 | return -1; | 129 | return -1; |
127 | } | 130 | } |
128 | 131 | ||