diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-11-07 21:50:05 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-11-07 21:50:05 +0100 |
commit | 6aa65d00f6a7305310eec05218b9ab9dea396658 (patch) | |
tree | aa29ef1b8c07806a7d3edf0a088835accd52f4a7 /kernel/net | |
parent | b0a56bb18f10e5be0c2bf668ce50c0203c2b2bdb (diff) |
compatibility: move to skb_protocol in the code from tc_skb_protocol
And fix a typo committed by me in em_sched.c too.
Diffstat (limited to 'kernel/net')
-rw-r--r-- | kernel/net/sched/em_ipset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/net/sched/em_ipset.c b/kernel/net/sched/em_ipset.c index 4f7184a..5428f8d 100644 --- a/kernel/net/sched/em_ipset.c +++ b/kernel/net/sched/em_ipset.c @@ -84,7 +84,7 @@ static int em_ipset_match(struct sk_buff *skb, struct tcf_ematch *em, #else #define ACPAR_FAMILY(f) acpar.family = f #endif - switch (skb_protocol((skb, true)) { + switch (skb_protocol(skb, true)) { case htons(ETH_P_IP): ACPAR_FAMILY(NFPROTO_IPV4); if (!pskb_network_may_pull(skb, sizeof(struct iphdr))) |