Lines Matching refs:optoff
80 int ip6_tlvopt_unknown(struct sk_buff *skb, int optoff) in ip6_tlvopt_unknown() argument
82 switch ((skb->nh.raw[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown()
96 icmpv6_param_prob(skb, ICMPV6_UNK_OPTION, optoff); in ip6_tlvopt_unknown()
479 static int ipv6_hop_ra(struct sk_buff *skb, int optoff) in ipv6_hop_ra() argument
481 if (skb->nh.raw[optoff+1] == 2) { in ipv6_hop_ra()
482 ((struct inet6_skb_parm*)skb->cb)->ra = optoff; in ipv6_hop_ra()
486 printk(KERN_DEBUG "ipv6_hop_ra: wrong RA length %d\n", skb->nh.raw[optoff+1]); in ipv6_hop_ra()
493 static int ipv6_hop_jumbo(struct sk_buff *skb, int optoff) in ipv6_hop_jumbo() argument
497 if (skb->nh.raw[optoff+1] != 4 || (optoff&3) != 2) { in ipv6_hop_jumbo()
499 … printk(KERN_DEBUG "ipv6_hop_jumbo: wrong jumbo opt length/alignment %d\n", skb->nh.raw[optoff+1]); in ipv6_hop_jumbo()
503 pkt_len = ntohl(*(u32*)(skb->nh.raw+optoff+2)); in ipv6_hop_jumbo()
505 icmpv6_param_prob(skb, ICMPV6_HDR_FIELD, optoff+2); in ipv6_hop_jumbo()
509 icmpv6_param_prob(skb, ICMPV6_HDR_FIELD, optoff); in ipv6_hop_jumbo()