X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fsched%2Fact_ipt.c;h=6b407ece953c2ddb54ef90eff2c6e3d6fe86e341;hb=edd5f25f7475013b44f7942bb3b25022792a9c9d;hp=47f0b13242395d7b2e71447bdc1e9daaef2bba52;hpb=4935361766cc73949fe032cd157d314f288922ba;p=karo-tx-linux.git diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index 47f0b1324239..6b407ece953c 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c @@ -11,26 +11,15 @@ * Copyright: Jamal Hadi Salim (2002-4) */ -#include -#include -#include #include #include #include -#include -#include -#include -#include #include -#include -#include #include #include #include #include -#include -#include -#include +#include #include #include #include @@ -245,7 +234,7 @@ static int tcf_ipt(struct sk_buff *skb, struct tc_action *a, static int tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) { - unsigned char *b = skb->tail; + unsigned char *b = skb_tail_pointer(skb); struct tcf_ipt *ipt = a->priv; struct ipt_entry_target *t; struct tcf_t tm; @@ -277,7 +266,7 @@ static int tcf_ipt_dump(struct sk_buff *skb, struct tc_action *a, int bind, int return skb->len; rtattr_failure: - skb_trim(skb, b - skb->data); + nlmsg_trim(skb, b); kfree(t); return -1; }