Lines Matching defs:offset
245 /* Each key touches 4 bytes starting from the computed offset */
280 static bool offset_valid(struct sk_buff *skb, int offset)
282 if (offset > 0 && offset > skb->len)
285 if (offset < 0 && -offset > skb_headroom(skb))
351 int offset = tkey->off;
374 pr_info("tc action pedit 'at' offset %d out of bounds\n",
382 offset += (*d & tkey->offmask) >> tkey->shift;
385 if (offset % 4) {
386 pr_info("tc action pedit offset must be on 32 bit boundaries\n");
390 if (!offset_valid(skb, hoffset + offset)) {
391 pr_info("tc action pedit offset %d out of bounds\n",
392 hoffset + offset);
396 ptr = skb_header_pointer(skb, hoffset + offset,
416 skb_store_bits(skb, hoffset + offset, ptr, 4);