Lines Matching refs:header_len
667 batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len, in batadv_gw_dhcp_recipient_get() argument
681 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
686 *header_len += ETH_HLEN; in batadv_gw_dhcp_recipient_get()
690 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
695 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
701 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
704 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
705 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
713 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
716 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
717 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
728 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
731 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
732 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get()
750 chaddr_offset = *header_len + BATADV_DHCP_CHADDR_OFFSET; in batadv_gw_dhcp_recipient_get()
755 p = skb->data + *header_len + BATADV_DHCP_HTYPE_OFFSET; in batadv_gw_dhcp_recipient_get()
760 p = skb->data + *header_len + BATADV_DHCP_HLEN_OFFSET; in batadv_gw_dhcp_recipient_get()