Lines Matching refs:header_len
562 batadv_gw_dhcp_recipient_get(struct sk_buff *skb, unsigned int *header_len, in batadv_gw_dhcp_recipient_get() argument
576 if (!pskb_may_pull(skb, *header_len + ETH_HLEN)) in batadv_gw_dhcp_recipient_get()
581 *header_len += ETH_HLEN; in batadv_gw_dhcp_recipient_get()
585 if (!pskb_may_pull(skb, *header_len + VLAN_HLEN)) in batadv_gw_dhcp_recipient_get()
590 *header_len += VLAN_HLEN; in batadv_gw_dhcp_recipient_get()
596 if (!pskb_may_pull(skb, *header_len + sizeof(*iphdr))) in batadv_gw_dhcp_recipient_get()
599 iphdr = (struct iphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
600 *header_len += iphdr->ihl * 4; in batadv_gw_dhcp_recipient_get()
608 if (!pskb_may_pull(skb, *header_len + sizeof(*ipv6hdr))) in batadv_gw_dhcp_recipient_get()
611 ipv6hdr = (struct ipv6hdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
612 *header_len += sizeof(*ipv6hdr); in batadv_gw_dhcp_recipient_get()
623 if (!pskb_may_pull(skb, *header_len + sizeof(*udphdr))) in batadv_gw_dhcp_recipient_get()
626 udphdr = (struct udphdr *)(skb->data + *header_len); in batadv_gw_dhcp_recipient_get()
627 *header_len += sizeof(*udphdr); in batadv_gw_dhcp_recipient_get()
645 chaddr_offset = *header_len + BATADV_DHCP_CHADDR_OFFSET; in batadv_gw_dhcp_recipient_get()
652 p = skb->data + *header_len + BATADV_DHCP_HTYPE_OFFSET; in batadv_gw_dhcp_recipient_get()
657 p = skb->data + *header_len + BATADV_DHCP_HLEN_OFFSET; in batadv_gw_dhcp_recipient_get()