sch_ingress.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) | sch_ingress.c (27a884dc3cb63b93c2b3b643f5b31eed5f8a4d26) |
---|---|
1/* net/sched/sch_ingress.c - Ingress qdisc 2 * This program is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU General Public License 4 * as published by the Free Software Foundation; either version 5 * 2 of the License, or (at your option) any later version. 6 * 7 * Authors: Jamal Hadi Salim 1999 8 */ --- 348 unchanged lines hidden (view full) --- 357/* for future use */ 358 qdisc_destroy(p->q); 359#endif 360} 361 362 363static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb) 364{ | 1/* net/sched/sch_ingress.c - Ingress qdisc 2 * This program is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU General Public License 4 * as published by the Free Software Foundation; either version 5 * 2 of the License, or (at your option) any later version. 6 * 7 * Authors: Jamal Hadi Salim 1999 8 */ --- 348 unchanged lines hidden (view full) --- 357/* for future use */ 358 qdisc_destroy(p->q); 359#endif 360} 361 362 363static int ingress_dump(struct Qdisc *sch, struct sk_buff *skb) 364{ |
365 unsigned char *b = skb->tail; | 365 unsigned char *b = skb_tail_pointer(skb); |
366 struct rtattr *rta; 367 368 rta = (struct rtattr *) b; 369 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); | 366 struct rtattr *rta; 367 368 rta = (struct rtattr *) b; 369 RTA_PUT(skb, TCA_OPTIONS, 0, NULL); |
370 rta->rta_len = skb->tail - b; | 370 rta->rta_len = skb_tail_pointer(skb) - b; |
371 return skb->len; 372 373rtattr_failure: 374 skb_trim(skb, b - skb->data); 375 return -1; 376} 377 378static struct Qdisc_class_ops ingress_class_ops = { --- 57 unchanged lines hidden --- | 371 return skb->len; 372 373rtattr_failure: 374 skb_trim(skb, b - skb->data); 375 return -1; 376} 377 378static struct Qdisc_class_ops ingress_class_ops = { --- 57 unchanged lines hidden --- |