Lines Matching refs:header_len
621 batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len, in batadv_gw_dhcp_recipient_get() argument
635 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
640 *header_len += ETH_HLEN; in batadv_gw_dhcp_recipient_get()
644 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
649 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
655 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
658 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
659 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
667 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
670 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
671 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
682 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
685 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
686 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get()
704 chaddr_offset = *header_len + BATADV_DHCP_CHADDR_OFFSET; in batadv_gw_dhcp_recipient_get()
711 p = skb->data + *header_len + BATADV_DHCP_HTYPE_OFFSET; in batadv_gw_dhcp_recipient_get()
716 p = skb->data + *header_len + BATADV_DHCP_HLEN_OFFSET; in batadv_gw_dhcp_recipient_get()