Lines Matching refs:header_len
552 batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len, in batadv_gw_dhcp_recipient_get() argument
566 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
571 *header_len += ETH_HLEN; in batadv_gw_dhcp_recipient_get()
575 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
580 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
586 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
589 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
590 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
598 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
601 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
602 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
613 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
616 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
617 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get()
635 chaddr_offset = *header_len + BATADV_DHCP_CHADDR_OFFSET; in batadv_gw_dhcp_recipient_get()
642 p = skb->data + *header_len + BATADV_DHCP_HTYPE_OFFSET; in batadv_gw_dhcp_recipient_get()
647 p = skb->data + *header_len + BATADV_DHCP_HLEN_OFFSET; in batadv_gw_dhcp_recipient_get()