Lines Matching refs:header_len
611 batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len, in batadv_gw_dhcp_recipient_get() argument
625 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
630 *header_len += ETH_HLEN; in batadv_gw_dhcp_recipient_get()
634 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
639 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
645 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
648 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
649 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
657 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
660 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
661 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
672 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
675 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
676 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get()
694 chaddr_offset = *header_len + BATADV_DHCP_CHADDR_OFFSET; in batadv_gw_dhcp_recipient_get()
701 p = skb->data + *header_len + BATADV_DHCP_HTYPE_OFFSET; in batadv_gw_dhcp_recipient_get()
706 p = skb->data + *header_len + BATADV_DHCP_HLEN_OFFSET; in batadv_gw_dhcp_recipient_get()