act_gact.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) act_gact.c (27a884dc3cb63b93c2b3b643f5b31eed5f8a4d26)
1/*
2 * net/sched/gact.c Generic actions
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 141 unchanged lines hidden (view full) ---

150 gact->tcf_tm.lastuse = jiffies;
151 spin_unlock(&gact->tcf_lock);
152
153 return action;
154}
155
156static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
157{
1/*
2 * net/sched/gact.c Generic actions
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version
7 * 2 of the License, or (at your option) any later version.
8 *

--- 141 unchanged lines hidden (view full) ---

150 gact->tcf_tm.lastuse = jiffies;
151 spin_unlock(&gact->tcf_lock);
152
153 return action;
154}
155
156static int tcf_gact_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref)
157{
158 unsigned char *b = skb->tail;
158 unsigned char *b = skb_tail_pointer(skb);
159 struct tc_gact opt;
160 struct tcf_gact *gact = a->priv;
161 struct tcf_t t;
162
163 opt.index = gact->tcf_index;
164 opt.refcnt = gact->tcf_refcnt - ref;
165 opt.bindcnt = gact->tcf_bindcnt - bind;
166 opt.action = gact->tcf_action;

--- 56 unchanged lines hidden ---
159 struct tc_gact opt;
160 struct tcf_gact *gact = a->priv;
161 struct tcf_t t;
162
163 opt.index = gact->tcf_index;
164 opt.refcnt = gact->tcf_refcnt - ref;
165 opt.bindcnt = gact->tcf_bindcnt - bind;
166 opt.action = gact->tcf_action;

--- 56 unchanged lines hidden ---