em_u32.c (f838bad1b3be8ca0c785ee0e0c570dfda74cf377) | em_u32.c (cc7ec456f82da7f89a5b376e613b3ac4311b3e9a) |
---|---|
1/* 2 * net/sched/em_u32.c U32 Ematch 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 * --- 21 unchanged lines hidden (view full) --- 30 ptr += (info->nexthdr & key->offmask); 31 } 32 33 ptr += key->off; 34 35 if (!tcf_valid_offset(skb, ptr, sizeof(u32))) 36 return 0; 37 | 1/* 2 * net/sched/em_u32.c U32 Ematch 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 * --- 21 unchanged lines hidden (view full) --- 30 ptr += (info->nexthdr & key->offmask); 31 } 32 33 ptr += key->off; 34 35 if (!tcf_valid_offset(skb, ptr, sizeof(u32))) 36 return 0; 37 |
38 return !(((*(__be32*) ptr) ^ key->val) & key->mask); | 38 return !(((*(__be32 *) ptr) ^ key->val) & key->mask); |
39} 40 41static struct tcf_ematch_ops em_u32_ops = { 42 .kind = TCF_EM_U32, 43 .datalen = sizeof(struct tc_u32_key), 44 .match = em_u32_match, 45 .owner = THIS_MODULE, 46 .link = LIST_HEAD_INIT(em_u32_ops.link) --- 18 unchanged lines hidden --- | 39} 40 41static struct tcf_ematch_ops em_u32_ops = { 42 .kind = TCF_EM_U32, 43 .datalen = sizeof(struct tc_u32_key), 44 .match = em_u32_match, 45 .owner = THIS_MODULE, 46 .link = LIST_HEAD_INIT(em_u32_ops.link) --- 18 unchanged lines hidden --- |