act_simple.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) | act_simple.c (27a884dc3cb63b93c2b3b643f5b31eed5f8a4d26) |
---|---|
1/* 2 * net/sched/simp.c Simple example of an action 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 if (d) 151 return tcf_simp_release(d, bind); 152 return 0; 153} 154 155static inline int tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, 156 int bind, int ref) 157{ | 1/* 2 * net/sched/simp.c Simple example of an action 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 if (d) 151 return tcf_simp_release(d, bind); 152 return 0; 153} 154 155static inline int tcf_simp_dump(struct sk_buff *skb, struct tc_action *a, 156 int bind, int ref) 157{ |
158 unsigned char *b = skb->tail; | 158 unsigned char *b = skb_tail_pointer(skb); |
159 struct tcf_defact *d = a->priv; 160 struct tc_defact opt; 161 struct tcf_t t; 162 163 opt.index = d->tcf_index; 164 opt.refcnt = d->tcf_refcnt - ref; 165 opt.bindcnt = d->tcf_bindcnt - bind; 166 opt.action = d->tcf_action; --- 45 unchanged lines hidden --- | 159 struct tcf_defact *d = a->priv; 160 struct tc_defact opt; 161 struct tcf_t t; 162 163 opt.index = d->tcf_index; 164 opt.refcnt = d->tcf_refcnt - ref; 165 opt.bindcnt = d->tcf_bindcnt - bind; 166 opt.action = d->tcf_action; --- 45 unchanged lines hidden --- |